• Resolved tompowell

    (@tompowell)


    I’ve created a loop using the custom post type ‘shop_coupon’ so I can get all the coupons I’ve added to my Woocommerce store. I’d like to include the expiry date in the loop for each coupon. How do I get the expiry date in the loop or as a part of the $args before the loop?

Viewing 1 replies (of 1 total)
  • Plugin Support con

    (@conschneider)

    Engineer

    Hi there,

    This is the method that gets the coupon expiry: WC_Coupon::get_date_expires( $context ); located in woocommerce/includes/class-wc-coupon.php.

    Kind regards,

Viewing 1 replies (of 1 total)
  • The topic ‘Get coupon code expiry date in loop’ is closed to new replies.