Disable Wordpress Updates

Sangwan Pankaj 1 11:59
To disable the update in WordPress
First open functions.php file and write these lines in functions.php of your theme folder.

To Disable Core Updates of Wordpress
add_filter( ‘pre_site_transient_update_core’, create_function( ‘$a’, “return null;” ) );
wp_clear_scheduled_hook( ‘wp_version_check’ );

To Disable Theme Updates
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
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’ ); 
That it!

Related Posts

Wordpress 7579303002029379891

1 comments

Nice post
Thanks!

Copyright by GhostPHP. Powered by Blogger.

Search

Recent Post

Popular Posts

Follow us