Disable updates notification for plugins, themes & core file in WordPress

Disable updates notification for plugins, themes & core file in WordPress

Most of WordPress plugins get updated on some regular periods so whenever you log in to your WordPress admin panel, you will get updates notification of plugins, themes or WordPress core files.

May be sometimes you want to make some changes in plugin functionality or plugin style so you need to modify plugin core files so if you update the plugin, your changes will be lost.

Hence, You can disable specific plugin update notifications using small code snippet which will disable update notification for specific plugin in WordPress.

You need to add a few lines of code into your functions.php file or wp-config.php file of WordPress.

/* Function which remove Plugin Update Notices – Askimet*/
function disable_plugin_updates( $value ) {
   unset( $value->response['akismet/akismet.php'] );
   return $value;
}
add_filter( 'site_transient_update_plugins', 'disable_plugin_updates' );

How to enable or activate major release updates in WordPress

If you want the WordPress core file auto updates then you have to add a single configuration line. To do this, open the wp-config.php file in the root folder of your WordPress installation and add below line.

define('WP_AUTO_UPDATE_CORE', true);

How to enable or activate plugins updates in WordPress

If you want the auto update plugins then you have to open wp-config.php file and add a single configuration line like below.

add_filter( 'auto_update_plugin', '__return_true' );

How to enable or activate themes updates in WordPress

If you want the auto update themes then you have to open wp-config.php file and add a single configuration line like below.

add_filter( 'auto_update_theme', '__return_true' );

How to disable core auto updates but enable or activate plugins and themes auto updates in WordPress

If you want to stop the auto updates of the WordPress core, but to activate Plugins and Themes, you can add below lines in the wp-config.php file.

Disable core auto updates:

define( 'WP_AUTO_UPDATE_CORE', false );

Enable plugins/themes updates:

add_filter( 'auto_update_plugin', '__return_true' );
add_filter( 'auto_update_theme', '__return_true' );

How to disable the WordPress auto updates completely

If you want to disable the WordPress auto updates completely then open the wp-config.php file and add below line.

define( 'AUTOMATIC_UPDATER_DISABLED', true );