woocommerce_cancel_unpaid_order filter-hookWC 1.0

Usage

add_filter( 'woocommerce_cancel_unpaid_order', 'wp_kama_woocommerce_cancel_unpaid_order_filter', 10, 2 );

/**
 * Function for `woocommerce_cancel_unpaid_order` filter-hook.
 * 
 * @param  $string 
 * @param  $order  
 *
 * @return 
 */
function wp_kama_woocommerce_cancel_unpaid_order_filter( $string, $order ){

	// filter...
	return $string;
}
$string
-
$order
-

Where the hook is called

wc_cancel_unpaid_orders()
woocommerce_cancel_unpaid_order
woocommerce/includes/wc-order-functions.php 955
if ( apply_filters( 'woocommerce_cancel_unpaid_order', 'checkout' === $order->get_created_via(), $order ) ) {

Where the hook is used in WooCommerce

Usage not found.