globalis/wpg-mail-trapping

Prevent sending emails from non-production environments

Installs: 2 446

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 2

Type:wordpress-muplugin

pkg:composer/globalis/wpg-mail-trapping

1.0.1 2017-12-20 09:35 UTC

This package is auto-updated.

Last update: 2025-09-29 02:14:59 UTC


README

Prevent sending emails from non-production environments

Installation :

  • Run composer require globalis/wpg-mail-trapping or add wpg-mail-trapping.php to your mu-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);