Quantcast
Channel: WordPress.org Forums » [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin] Support
Viewing all articles
Browse latest Browse all 4996

Possible to turn off the plugin programmatically?

$
0
0

Replies: 0

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 all articles
Browse latest Browse all 4996

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>