-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable REST API email sending programatically #6
Comments
@mgibbs189 That should do it. Pretty straight-forward. Thanks! |
Thanks @mgibbs189! I merged it to master. @pderksen Feel free to grab the latest from master, or you might also use our "testing" key for sending from staging, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there a way to disable sending emails via the REST API through code?
In my case, when I make a snapshot of my live site to staging (in this case WP Engine), I can then detect I'm on a staging URL, and send automated emails through the site to a test SMTP server (in this case mailtrap.io).
If I forget this then user accounts on my site will start to get automated emails through the staging site (purchase renewal reminders, etc).
If there was simply a way to disable sending emails with this plugin (like unchecking the "Enable" checkbox in the settings does) without having to deactivate the entire plugin that would be ideal.
Thanks!
The text was updated successfully, but these errors were encountered: