add_filter( 'auto_core_update_send_email', '__return_false' );
There has to be a simple means of toggling email notices wordpress updates on or off, and the most logical place would be a directive in wp-config.
An hopeful for a wp-config directive.
]]>The best you can do is to make a mu-plugin and add it to a PHP file there.
In wp-content, make a subdirectory called mu-plugins. It should be right alongside the plugins and themes directories.
Mu plugins are “must use”. WordPress auto-loads them. So make a new PHP file in there and put this in it:
<?php
/*
* Plugin Name: Turn off Update Emails
*/
add_filter( 'auto_core_update_send_email', '__return_false' );
Save it and you’re done.
]]>Hmm, so in the end, WP does not provide a directive to be added to the wp-config file?
Example:
define( 'AUTOMATIC_UPDATER_DISABLED', false );
define( 'WP_AUTO_UPDATE_CORE', false );
define( 'DISALLOW_FILE_MODS', true );
define( 'auto_core_update_send_email', false);
Does that not seem logical to place it with other similar directives governing “update” functionlity?
I’d MUCH rather have a fixed directive than a plugin to alter core functionality.
]]>Realistically, it’s one line of code. You don’t need to think of it as “yet another plugin”. Plugins are not inherently bad. The amount of code that you’re running is all that matters, not the number of plugins.
]]>I’ll go ahead and use the plugin option. Perhaps at some point the Devs will expand the directives available to wp-config, especially ones related to core functionality and/or behaviour.
Thanks again.
]]>