Automatically disable sending out emails in staging
Like how Woocommerce Subscriptions automatically stops sending out emails once it detects it's on a staging site.
We currently have issues with emails sending out in the staging site after right after resetting it. Adding Disable Emails in there is also not an option as it sends out emails right after the staging site is up. Not enough time to login and install the Disable Emails plugin
Alex McLarty commented
As a stopgap, I've been using this code on my staging sites that have Follow Ups.