WordPress plugin “Disable Emails”
WordPress plugin “Disable Emails” by WebAware is a useful tool that allows website owners to stop their website from sending any emails, including password resets or administrator notifications..
Developed by the same team who created the “Log Emails” plugin, Disable Emails is designed to cater to a range of needs, including:
At a glance
- Disable Emails
- Active Installations: 30,000+
- Last Updated: 30 Mar 2023
- Rating: from 16 ratings
- WP Directory Link: Disable Emails
- Creator: WebAware
- Version: 1.8.1
- demonstration websites
- development/test websites with live data
- bulk-loading data into websites that might trigger emails
- adding new sites into multisite installations.
The plugin replaces the standard WordPress
wp_mail() function with a function that sends no emails, while still supporting the standard WordPress filter and action hooks. Users can also make the plugin a must-use plugin, which ensures that it’s always loaded, making it especially useful on development websites where the database is frequently refreshed from a live site that doesn’t have the Disable Emails plugin activated.
If you’re wondering why you’re still getting standard WordPress emails when this plugin is installed, it’s possible that you have another plugin that adds its own implementation of the
wp_mail() function. Some plugins might still send emails via other methods, such as directly using the PHP
mail() function or implementing an SMTP client. In such cases, Disable Emails may not work, as it only replaces the
To achieve its functionality, the plugin creates a private copy of PHPMailer that allows the system to interact with it but silently suppresses the functions that send emails. This ensures that the standard WordPress filter and action hooks are supported while preventing any emails from being sent.
In summary, Disable Emails is a useful email utility that can help prevent unwanted emails from being sent.