woocommerce_new_order_note_data хук-фильтрWC 1.0

Использование

add_filter( 'woocommerce_new_order_note_data', 'wp_kama_woocommerce_new_order_note_data_filter' );

/**
 * Function for `woocommerce_new_order_note_data` filter-hook.
 * 
 * @param  $array 
 *
 * @return 
 */
function wp_kama_woocommerce_new_order_note_data_filter( $array ){

	// filter...
	return $array;
}
$array
-

Где вызывается хук

WC_Order::add_order_note()
woocommerce_new_order_note_data
woocommerce/includes/class-wc-order.php 1954-1971
$commentdata = apply_filters(
	'woocommerce_new_order_note_data',
	array(
		'comment_post_ID'      => $this->get_id(),
		'comment_author'       => $comment_author,
		'comment_author_email' => $comment_author_email,
		'comment_author_url'   => '',
		'comment_content'      => $note,
		'comment_agent'        => 'WooCommerce',
		'comment_type'         => 'order_note',
		'comment_parent'       => 0,
		'comment_approved'     => 1,
	),
	array(
		'order_id'         => $this->get_id(),
		'is_customer_note' => $is_customer_note,
	)
);

Где используется хук в WooCommerce

Использование не найдено.