woocommerce_cancel_unpaid_orders_interval_minutes хук-фильтрWC 5.1.0

Determines the interval at which to cancel unpaid orders in minutes.

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

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
-

Список изменений

С версии 5.1.0 Введена.

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

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

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

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