wc_order_statuses filter-hookWC 1.0

Usage

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
-

Where the hook is called

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

Where the hook is used in WooCommerce

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