WordPress at Your Fingertips
filter is not described

woocommerce_valid_order_statuses_for_payment filter-hook . WC 1.0

Work out if this was for a payment, and trigger a payment_status hook instead.

Usage

add_filter( 'woocommerce_valid_order_statuses_for_payment', 'filter_function_name_3307', 10, 2 );
function filter_function_name_3307( $array, $that ){
	// filter...

	return $array;
}
$array
-
$that
-

Where the hook is called

WC_Order::status_transition()
woocommerce_valid_order_statuses_for_payment
WC_Order::needs_payment()
woocommerce_valid_order_statuses_for_payment
woocommerce/includes/class-wc-order.php 378
in_array( $status_transition['from'], apply_filters( 'woocommerce_valid_order_statuses_for_payment', array( 'pending', 'failed' ), $this ), true )
woocommerce/includes/class-wc-order.php 1521
$valid_order_statuses = apply_filters( 'woocommerce_valid_order_statuses_for_payment', array( 'pending', 'failed' ), $this );

Where in WP core the hook is used WooCommerce

woocommerce/packages/woocommerce-blocks/src/Domain/Services/DraftOrders.php 44
add_filter( 'woocommerce_valid_order_statuses_for_payment', [ $this, 'append_draft_order_post_status' ] );