How to Disable Automatic Updates in WordPress

Code for disable plugin update in WordPress, PHP code for disable plugin update in WP, How i disable plugin update in my site, How i disable plugin update in my WordPress website.The simplest and effective way is to disable update the plugin which you don’t want to get update. For an example if you don’t want plugin  updated, then  Put this code in your  theme functions.php file. This is working for me and I’m using it. So now open your function.php file then copy and paste below code in your file.


function remove_wp_core_updates(){
    global $wp_version;return(object) array('last_checked'=> time(),'version_checked'=> $wp_version,);
}
//below code for disable wordpress update
add_filter('pre_site_transient_update_core','remove_wp_core_updates');

//below code for disable wordpress plugin update
add_filter('pre_site_transient_update_plugins','remove_wp_core_updates');

//below code for disable wordpress themes update
add_filter('pre_site_transient_update_themes','remove_wp_core_updates');

Or try another way below:


//CODE FOR REMOVED AUTO UPDATE ANY PLUGIN in WORDPRESS
add_filter('site_transient_update_plugins', '__return_false');

​Leave a Comment

Comment authors age:




GP 200% Bonus on 2GB data Package

How to send HTTP request GET/POST in Java