woocommerce_coupon_hold_minutes filter-hookWC 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.

Usage

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
-

Where the hook is called

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

Where the hook is used in WooCommerce

Usage not found.