• Resolved markisu72

    (@markisu72)


    Hi,

    I am looking for a way to dynamically stop wc_email_new_order being sent in certain situations.

    Is there a filter or similar to achieve this?
    I did not find anything useful yet

    Thx

    Markus

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @markisu72

    Yes, there is a way to dynamically stop the wc_email_new_order from being sent in certain situations. You can achieve this by using the woocommerce_email_recipient_new_order filter. This filter allows you to modify the recipient’s email address, or even set it to blank which effectively stops the email from being sent.

    You can also achieve this by using the woocommerce_email_enabled_new_order filter. This filter allows you to conditionally disable the new order email based on the order details.

    Alternatively, you can use an additional plugin like WooCommerce Advanced Notifications, or WooCommerce Order Status Manager. This plugin will give you more control over the notifications being sent out, including new order emails.

    I hope this helps! If you have any more questions, feel free to ask.

    Thread Starter markisu72

    (@markisu72)

    Thanks a lot! It worked!

    Hi @markisu72,

    Thanks a lot! It worked!

    I’m delighted that the solution we suggested worked for you! It’s always rewarding to see our users successfully apply our advice.

    I’ll go ahead and mark this thread as resolved. However, if you ever have more questions or issues in the future, don’t hesitate to kick off a new topic.

    We’d be thrilled if you could spare a few minutes to leave us a review at ?? https://www.ads-software.com/support/plugin/woocommerce/reviews.

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Conditionally stop wc_email_new_order from being sent’ is closed to new replies.