Support » Plugin: WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin » Possible to turn off the plugin programmatically?

  • Resolved Cibulka

    (@cibulka)


    Hello again and thanks for an awesome plugin!

    Is there a way to programatically disable the plugin? Something like this:

    define('WPMS_DISABLE', WP_ENV === 'development');

    Here’s why – I’m using environments for my WP back-end (development, staging, production) and I’m testing my HTML e-mails with MailHog (thanks Roots/Trellis!). I would like to keep using that. I know that I can just turn the plugin on and off but that seems a bit messy.

    Also do you have documentation for developers? I could not find it on your web or your current GitHub.

    Thanks again, P!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @cibulka,

    Currently, we don’t have any specific constant to programmatically disable the plugin. In case it helps, we have a constant WPMS_DO_NOT_SEND to stop sending all emails from your site.

    We don’t have developer documentation yet. This is on our radar though.

    Thanks!

    Thread Starter Cibulka

    (@cibulka)

    In case it helps, we have a constant WPMS_DO_NOT_SEND to stop sending all emails from your site.

    – this does not help my situation as it disables wp_mail function althogether. I need the emails to be sent, just not with the WP Mail SMTP plugin.

    We don’t have developer documentation yet. This is on our radar though.

    – cool, looking forward to that!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Possible to turn off the plugin programmatically?’ is closed to new replies.