There is an opt-in filter that allows all plugins on my site to receive automatic updates:
add_filter( 'auto_update_plugin', '__return_true' );
I like this feature, but I don’t want all my plugins to be updated automatically. How can I allow some plugins to be updated automatically, while excluding those I want to do manually?
Instead of using the code from the question in functions.php, replace it with this:
This code can easily be tweaked to customize theme and core updates, too.
Plugin and theme update statistics were added in WordPress 3.8.2 (27905). The above function uses the slug to identify the plugins, but you can use any of the object’s info (in $item):
For WordPress 3.8.1 and below, use this function instead:
Props go to @WiseOwl9000 for pointing out the change with WP 3.8.2
Note as of wordpress 3.8.2 the type of the plugin item passed to this function has changed and it is now an object.
The $plugin object has the following: