globalis / wpg-mail-trapping
Prevent sending emails from non-production environments
Installs: 2 435
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 2
Type:wordpress-muplugin
Requires
- php: >=5.5
Requires (Dev)
- squizlabs/php_codesniffer: ^2.5.1
This package is auto-updated.
Last update: 2024-10-29 04:59:19 UTC
README
Prevent sending emails from non-production environments
Installation :
- Run
composer require globalis/wpg-mail-trapping
or addwpg-mail-trapping.php
to yourmu-plugins
directory
Configuration
-
Add
define('WPG_MAIL_TRAPPING', serialize(['you@example.com']));
in your wp-config.php file. -
If you want to disable the mail trapping, set the constant to false:
define('WPG_MAIL_TRAPPING', false);