woocommerce_coupon_hold_minutes

woocommerce_coupon_hold_minutes

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_coupon_hold_minutes') is found 1 times:

  • /includes/data-stores/class-wc-coupon-data-store-cpt.php line 522
    	 *
    	 * @return int
    	 */
    	private function get_tentative_held_time() {
    		return apply_filters( 'woocommerce_coupon_hold_minutes', ( (int) get_option( 'woocommerce_hold_stock_minutes', 60 ) ) ) * 60;
    	}
    
    	/**
    	 * Check and records coupon usage tentatively for short period of time so that counts validation is correct. Returns early if there is no limit defined for the coupon.
    	 *
    	 * @param WC_Coupon $coupon Coupon object.