Code to Disable Sending in Staging Environment
-
Is any example code available to programmatically implement the
define( 'WPMS_DO_NOT_SEND', true );
constant fromtrue
tofalse
when a staging URL is detected?I often use the Duplicator plugin to copy a site to a “staging.main-site.com” subdomain, and am looking for a way that I can have email sending automatically disabled immediately upon the site being copied over to the staging subdomain.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Code to Disable Sending in Staging Environment’ is closed to new replies.