How to disable check for WordPress plugin updates

How to disable check for WordPress plugin updates

This snippet will prevent WordPress from checking if there are any updates for installed plugins. This could be useful if you’re creating a website for a client, and you don’t want them to update their plugins in case you have changed the code in it, or if you’re worried that the update will break the site.

Instructions
Add this code to your functions.php file

remove_action('load-update-core.php','wp_update_plugins');
add_filter('pre_site_transient_update_plugins', create_function('$a',"return null;"));

WordPress Hosting

Leave a Reply

Your email address will not be published. Required fields are marked *