woocommerce_coupon_hold_minutes хук-фильтрWC 1.0

Get held time for resources before cancelling the order. Use 60 minutes as sane default. Note that the filter woocommerce_coupon_hold_minutes support minutes because it's getting used elsewhere as well, however this function returns in seconds.

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

add_filter( 'woocommerce_coupon_hold_minutes', 'wp_kama_woocommerce_coupon_hold_minutes_filter' );

/**
 * Function for `woocommerce_coupon_hold_minutes` filter-hook.
 * 
 * @param  $condition 
 *
 * @return 
 */
function wp_kama_woocommerce_coupon_hold_minutes_filter( $condition ){

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

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

WC_Coupon_Data_Store_CPT::get_tentative_held_time()
woocommerce_coupon_hold_minutes
woocommerce/includes/data-stores/class-wc-coupon-data-store-cpt.php 492
return apply_filters( 'woocommerce_coupon_hold_minutes', ( (int) get_option( 'woocommerce_hold_stock_minutes', 60 ) ) ) * 60;

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

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