To stop receiving emails about automatic updates on your WordPress site, you can add a code snippet to your theme’s functions.php file or create a custom plugin. Here are the steps for both methods:
Method 1: Add Code to functions.php
- Open your theme’s functions.php file (located in wp-content/themes/your-theme/).
- Add the following code to disable update notification emails:
// Disable automatic update notification emails
add_filter( 'auto_core_update_send_email', '__return_false' );
add_filter( 'automatic_updates_send_debug_email', '__return_false', 1 );
Method 2: Create a Custom Plugin
- Create a new file in your wp-content/plugins/ directory, for example, disable-update-emails.php.
- Add the following code to the file:
<?php
/*
Plugin Name: Disable Update Emails
Description: Disables automatic update notification emails on WordPress.
Version: 1.0
Author: Your Name
*/
// Disable automatic update notification emails
add_filter( 'auto_core_update_send_email', '__return_false' );
add_filter( 'automatic_updates_send_debug_email', '__return_false', 1 );
3. Activate the plugin from the WordPress admin dashboard.
Additional Option: Use a Plugin from the Repository
There are also plugins available in the WordPress repository that can handle this for you. One such plugin is “Manage Notification E-mails”:
- Go to your WordPress admin dashboard.
- Navigate to Plugins > Add New.
- Search for “Manage Notification E-mails”.
- Install and activate the plugin.
- Configure the plugin settings to disable update notification emails.
By following any of these methods, you will stop receiving emails about automatic updates on your WordPress site.