Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
functions.php extension to include only specific plugins in the automatic updates
function auto_update_specific_plugins ( $update, $item ) {
// List your plugins to be updated here
$plugins = array (
if ( in_array( $item->slug, $plugins ) ) {
return true;
return $update;
add_filter( 'auto_update_plugin', 'auto_update_specific_plugins', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment