• Resolved mlykotom

    (@mlykotom)


    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://ww.wp.xz.cn/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

    (@przemyslawrosa)

    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

    (@mlykotom)

    Great! Thanks for the information. I understand this is probably not a priority 🙂

    Plugin Support przemyslawrosa

    (@przemyslawrosa)

    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.