woocommerce_coupon_validate_expiry_date

woocommerce_coupon_validate_expiry_date

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

See hook in core

Displaying hooks found in version: woocommerce.9.9.5

apply_filters('woocommerce_coupon_validate_expiry_date') is found 1 times:

  • /includes/class-wc-discounts.php line 711
    	 * @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() )
    				),