Disable Updates in WordPress

To disable the update in WordPress Write these lines in functions.php of your theme folder.
To Disable Theme Updates # 3.0+

remove_action( ‘load-update-core.php’, ‘wp_update_themes’ );
add_filter( ‘pre_site_transient_update_themes’, create_function( ‘$a’, “return null;” ) );
wp_clear_scheduled_hook( ‘wp_update_themes’ );


To Disable Plugin Updates #3.0+

remove_action( ‘load-update-core.php’, ‘wp_update_plugins’ );
add_filter( ‘pre_site_transient_update_plugins’, create_function( ‘$a’, “return null;” ) );
wp_clear_scheduled_hook( ‘wp_update_plugins’ );

To Diasable Core Updates # 3.0+

add_filter( ‘pre_site_transient_update_core’, create_function( ‘$a’, “return null;” ) );
wp_clear_scheduled_hook( ‘wp_version_check’ );

Leave a Reply

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