WordPress at Your Fingertips
filter is not described

woocommerce_valid_order_statuses_for_cancel filter-hook . WC 1.0

Usage

add_filter( 'woocommerce_valid_order_statuses_for_cancel', 'filter_function_name_779', 10, 2 );
function filter_function_name_779( $array, $order ){
	// filter...

	return $array;
}
$array
-
$order
-

Where the hook is called

wc_get_account_orders_actions()
woocommerce_valid_order_statuses_for_cancel
WC_Form_Handler::cancel_order()
woocommerce_valid_order_statuses_for_cancel
woocommerce/includes/wc-account-functions.php 298
if ( ! in_array( $order->get_status(), apply_filters( 'woocommerce_valid_order_statuses_for_cancel', array( 'pending', 'failed' ), $order ), true ) ) {
woocommerce/includes/class-wc-form-handler.php 739
$order_can_cancel = $order->has_status( apply_filters( 'woocommerce_valid_order_statuses_for_cancel', array( 'pending', 'failed' ), $order ) );

Where in WP core the hook is used WooCommerce

Usage not found.