Title: FlexibleCoupons(Base)Email doesn&#8217;t have trigger function
Last modified: May 4, 2023

---

# FlexibleCoupons(Base)Email doesn’t have trigger function

 *  Resolved [mlykotom](https://wordpress.org/support/users/mlykotom/)
 * (@mlykotom)
 * [3 years ago](https://wordpress.org/support/topic/flexiblecouponsbaseemail-doesnt-have-trigger-function/)
 * Each wordpress email class (inheritting WC_Email) has a public function trigger(
   $args) that triggers sendinng the email for woocommerce.
 * Is it possible to implement this function? Mostly I’m interested in previewing
   the email with this plugin [https://wordpress.org/support/plugin/woo-preview-emails/](https://wordpress.org/support/plugin/woo-preview-emails/)
   which uses the standard behavior to preview emails.

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

 *  Plugin Support [przemyslawrosa](https://wordpress.org/support/users/przemyslawrosa/)
 * (@przemyslawrosa)
 * [3 years ago](https://wordpress.org/support/topic/flexiblecouponsbaseemail-doesnt-have-trigger-function/#post-16713359)
 * Hi, needed to analyze this before responding 🙂
 * Indeed, we do not currently use the trigger function, because WooCommerce does
   not enforce its use. Since the beginning of our plugin, we have been using a 
   different function name: send_mail, which we cannot change ad hoc because it 
   is public.
 * Theoretically, we could add a parallel trigger function for which we would call
   send_mail, but unfortunately, we won’t do it soon (in upcoming weeks), due to
   work on other tasks.
 * Anyway, I’ll take your need to the plugin’s backlog and possibly fulfill it in
   the next iterations of work on the plugin, because we plan to change and add 
   new functionality to send emails using Flexible Coupons.
 *  Thread Starter [mlykotom](https://wordpress.org/support/users/mlykotom/)
 * (@mlykotom)
 * [3 years ago](https://wordpress.org/support/topic/flexiblecouponsbaseemail-doesnt-have-trigger-function/#post-16713449)
 * Great! Thanks for the information. I understand this is probably not a priority
   🙂
 *  Plugin Support [przemyslawrosa](https://wordpress.org/support/users/przemyslawrosa/)
 * (@przemyslawrosa)
 * [3 years ago](https://wordpress.org/support/topic/flexiblecouponsbaseemail-doesnt-have-trigger-function/#post-16713621)
 * Thanks for understanding! 🙂 I’ll let you know when the feature will be implemented!

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

The topic ‘FlexibleCoupons(Base)Email doesn’t have trigger function’ is closed to
new replies.

 * ![](https://ps.w.org/flexible-coupons/assets/icon-256x256.png?rev=2329191)
 * [Flexible PDF Coupons - Gift Cards & Vouchers for WooCommerce](https://wordpress.org/plugins/flexible-coupons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/flexible-coupons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/flexible-coupons/)
 * [Active Topics](https://wordpress.org/support/plugin/flexible-coupons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/flexible-coupons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/flexible-coupons/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [przemyslawrosa](https://wordpress.org/support/users/przemyslawrosa/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/flexiblecouponsbaseemail-doesnt-have-trigger-function/#post-16713621)
 * Status: resolved