Title: What Function Does Your Plugin Check with Conditional Coupons?
Last modified: September 19, 2023

---

# What Function Does Your Plugin Check with Conditional Coupons?

 *  Resolved [deeeesign](https://wordpress.org/support/users/designnewdaymediacom/)
 * (@designnewdaymediacom)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/what-function-does-your-plugin-check-with-conditional-coupons/)
 * We’re testing out this plugin with WooCommerce Subscriptions, to auto-apply subscription-
   only coupons for specific quantities. It’s working great for that function.
 * We also purchased and installed this plugin: [https://shopplugins.com/plugins/toolbox-for-woocommerce-subscriptions/](https://shopplugins.com/plugins/toolbox-for-woocommerce-subscriptions/)
   so that customers can edit all of their subscription details on the My Account
   page. However, that plugin does not check for coupons or other discounts before
   saving the customer’s changes. When we reached out to their support, they asked
   us if we could ask you guys, “which function or code piece does the conditional
   code check”, to see if they can hook into that function and check it before saving
   the changes.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [RLDD](https://wordpress.org/support/users/rermis/)
 * (@rermis)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/what-function-does-your-plugin-check-with-conditional-coupons/#post-17063652)
 * Hi [@designnewdaymediacom](https://wordpress.org/support/users/designnewdaymediacom/),
 *  The Auto Coupons plugin checks a few different things, but it can be most summarized
   into the return value from is_coupon_valid() and the coupon’s postmeta data of
   meta_key=’_wc_auto_apply’ and meta_value=’yes’.
 * I hope this is enough information to resolve your issue. Please let me know if
   you require any further details.
 *  Plugin Author [RLDD](https://wordpress.org/support/users/rermis/)
 * (@rermis)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/what-function-does-your-plugin-check-with-conditional-coupons/#post-17074647)
 * This ticket is closed, but if you have further related questions you may post
   them here.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘What Function Does Your Plugin Check with Conditional Coupons?’ is closed
to new replies.

 * ![](https://ps.w.org/woo-auto-coupons/assets/icon-256x256.png?rev=3405507)
 * [Auto Coupons for WooCommerce](https://wordpress.org/plugins/woo-auto-coupons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-auto-coupons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-auto-coupons/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-auto-coupons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-auto-coupons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-auto-coupons/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [RLDD](https://wordpress.org/support/users/rermis/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/what-function-does-your-plugin-check-with-conditional-coupons/#post-17074647)
 * Status: resolved