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

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

add_filter( 'wc_order_statuses', 'wp_kama_wc_order_statuses_filter' );

/**
 * Function for `wc_order_statuses` filter-hook.
 * 
 * @param  $order_statuses 
 *
 * @return 
 */
function wp_kama_wc_order_statuses_filter( $order_statuses ){

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

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

wc_get_order_statuses()
wc_order_statuses
woocommerce/includes/wc-order-functions.php 103
return apply_filters( 'wc_order_statuses', $order_statuses );

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

woocommerce/packages/woocommerce-blocks/src/Domain/Services/DraftOrders.php 40
add_filter( 'wc_order_statuses', [ $this, 'register_draft_order_status' ] );