Disable Automatic Updates Email in WordPress #wordpress, #updates, #email, #notifications

01/30/2024
Back to Gists
<?php
/**
 * Disables automatic update notification emails in WordPress.
 *
 * This code snippet hooks into WordPress auto-update settings to disable 
 * automatic emails for core, plugin, and theme updates. It's particularly 
 * useful for reducing email clutter and is often suitable for a managed 
 * WordPress environment where updates are handled through a central management system.
 *
 * Gist Keywords: wordpress, emails, admin, notifications
 *
 * @author Knol Aust
 */

// Disable auto-update emails for WordPress core.
add_filter( 'auto_core_update_send_email', '__return_false' );

// Disable auto-update emails for plugins.
add_filter( 'auto_plugin_update_send_email', '__return_false' );

// Disable auto-update emails for themes.
add_filter( 'auto_theme_update_send_email', '__return_false' );