woocommerce_cancel_unpaid_orders_interval_minutes хук-фильтрWC 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.

Использование

add_filter( 'woocommerce_cancel_unpaid_orders_interval_minutes', 'wp_kama_woocommerce_cancel_unpaid_orders_interval_minutes_filter' );
function wp_kama_woocommerce_cancel_unpaid_orders_interval_minutes_filter( $absint ){
	// filter...

	return $absint;
}
$absint
-

Где вызывается хук

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 931
$cancel_unpaid_interval = apply_filters( 'woocommerce_cancel_unpaid_orders_interval_minutes', absint( $held_duration ) );
woocommerce/includes/class-wc-install.php 567
$cancel_unpaid_interval = apply_filters( 'woocommerce_cancel_unpaid_orders_interval_minutes', absint( $held_duration ) );
woocommerce/includes/wc-formatting-functions.php 1165
$cancel_unpaid_interval = apply_filters( 'woocommerce_cancel_unpaid_orders_interval_minutes', absint( $value ) );

Где используется хук в WooCommerce

Использование не найдено.