woocommerce_coupon_validate_expiry_date, time(

woocommerce_coupon_validate_expiry_date, time(

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

apply_filters('woocommerce_coupon_validate_expiry_date, time(') is found 1 times:

  • /includes/class-wc-discounts.php line 713
    	 * @param  WC_Coupon $coupon Coupon data.
    	 * @return bool
    	 */
    	protected function validate_coupon_expiry_date( $coupon ) {
    		if ( $coupon->get_date_expires() && apply_filters( 'woocommerce_coupon_validate_expiry_date', time() > $coupon->get_date_expires()->getTimestamp(), $coupon, $this ) ) {
    			throw new Exception(
    				sprintf(
    					/* translators: %s: coupon code */
    					esc_html__( 'Coupon "%s" has expired.', 'woocommerce' ),
    					esc_html( $coupon->get_code() )
    				),