• Resolved Dave Pattern

    (@daveyp)


    I appreciate this is a edge case, but is it possible to use the pre_wp_mail filter with Mail Queue?

    What I’m trying to do is ensure that certain dummy subscriber accounts in my WordPress instance never trigger an email. The accounts have email addresses with the same fake @ domain, however using pre_wp_mail to return false when an attempt is made by WP to send an email to an address with that fake domain doesn’t do anything (almost as if Mail Queue is getting in there first). Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author WDM

    (@wdm-team)

    Hi Dave,

    that’s a good point. We will take a look at it and get back to you.

    Best regards,
    Nicolas

    Thread Starter Dave Pattern

    (@daveyp)

    Many thanks! I’ve tested with Mail Queue disabled and can see the pre_wp_mail filter working as expected.

    Plugin Author WDM

    (@wdm-team)

    Currently, our plugin hooks into pre_wp_mail to queue emails, which effectively overrides your filter. We are refactoring the code to lower our priority and respect other pre_wp_mail return values.

    We are working on this now and will release an update soon.

    Best regards,
    Nicolas

    Plugin Author WDM

    (@wdm-team)

    Hi Dave,

    the new version is published. Please update and give it a try.

    best,
    Nicolas

    Thread Starter Dave Pattern

    (@daveyp)

    Sorry for the delay in replying. The new version works perfectly! Many thanks 🙂

    Plugin Author WDM

    (@wdm-team)

    Thanks for the feedback. I’m glad to hear it works for you, and I’d be grateful if you could leave a positive rating for our plugin.

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

You must be logged in to reply to this topic.