woocommerce_cancel_unpaid_orders_interval_minutes filter-hookWC 1.0

Re-schedule the event before cancelling orders this way in case of a DB timeout or (plugin) crash the event is always scheduled for retry.

Usage

add_filter( 'woocommerce_cancel_unpaid_orders_interval_minutes', 'wp_kama_woocommerce_cancel_unpaid_orders_interval_minutes_filter' );

/**
 * Function for `woocommerce_cancel_unpaid_orders_interval_minutes` filter-hook.
 * 
 * @param  $absint 
 *
 * @return 
 */
function wp_kama_woocommerce_cancel_unpaid_orders_interval_minutes_filter( $absint ){

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

Where the hook is called

wc_cancel_unpaid_orders()
woocommerce_cancel_unpaid_orders_interval_minutes
WC_Install::create_cron_jobs()
woocommerce_cancel_unpaid_orders_interval_minutes
wc_format_option_hold_stock_minutes()
woocommerce_cancel_unpaid_orders_interval_minutes
woocommerce/includes/wc-order-functions.php 941
$cancel_unpaid_interval = apply_filters( 'woocommerce_cancel_unpaid_orders_interval_minutes', absint( $held_duration ) );
woocommerce/includes/class-wc-install.php 654
$cancel_unpaid_interval = apply_filters( 'woocommerce_cancel_unpaid_orders_interval_minutes', absint( $held_duration ) );
woocommerce/includes/wc-formatting-functions.php 1172
$cancel_unpaid_interval = apply_filters( 'woocommerce_cancel_unpaid_orders_interval_minutes', absint( $value ) );

Where the hook is used in WooCommerce

Usage not found.