woocommerce_trash_cancelled_orders_query_args filter-hookWC 1.0

Usage

add_filter( 'woocommerce_trash_cancelled_orders_query_args', 'wp_kama_woocommerce_trash_cancelled_orders_query_args_filter' );

/**
 * Function for `woocommerce_trash_cancelled_orders_query_args` filter-hook.
 * 
 * @param  $array 
 *
 * @return 
 */
function wp_kama_woocommerce_trash_cancelled_orders_query_args_filter( $array ){

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

Where the hook is called

WC_Privacy::trash_cancelled_orders()
woocommerce_trash_cancelled_orders_query_args
woocommerce/includes/class-wc-privacy.php 238-246
apply_filters(
	'woocommerce_trash_cancelled_orders_query_args',
	array(
		'date_created' => '<' . strtotime( '-' . $option['number'] . ' ' . $option['unit'] ),
		'limit'        => $limit, // Batches of 20.
		'status'       => 'wc-cancelled',
		'type'         => 'shop_order',
	)
)

Where the hook is used in WooCommerce

Usage not found.