How To Save Customized WordPress Themes From New Updates ?

Disabling WordPress themes updates is a important hack specially for website owners who edits the core of their WordPress Theme, customize its template files, add analytics, hacks etc.

How To Disable Themes Updates In WordPress ? All you need to do is install and activate Disable Theme Updates WordPress plugin and you are done.

The plugin disables all theme updating. It does’t affects the plugin updates.

OR Alternatively you can use the following code in your theme’s function.php file:

// Hides all upgrade notices
add_action('admin_menu','hide_admin_notices');
function hide_admin_notices() {
remove_action( 'admin_notices', 'update_nag', 3 );
}

// Remove the 'Updates' menu item from the admin interface
add_action('admin_menu', 'remove_menus', 102);
function remove_menus() {
global $submenu;
remove_submenu_page ( 'index.php', 'update-core.php' );
}

// Disable theme updates
remove_action( 'load-update-core.php', 'wp_update_themes' );
add_filter( 'pre_site_transient_update_themes', create_function( '$a', "return null;" ) );

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.