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

Gets the order number for display (by default, order ID).

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

add_filter( 'woocommerce_order_number', 'wp_kama_woocommerce_order_number_filter', 10, 2 );

/**
 * Function for `woocommerce_order_number` filter-hook.
 * 
 * @param  $id   
 * @param  $that 
 *
 * @return 
 */
function wp_kama_woocommerce_order_number_filter( $id, $that ){

	// filter...
	return $id;
}
$id
-
$that
-

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

WC_Order::get_order_number()
woocommerce_order_number
woocommerce/includes/class-wc-order.php 481
return (string) apply_filters( 'woocommerce_order_number', $this->get_id(), $this );

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

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