How to Disable Plugin Updates in WordPress

What you need to do to disable the update of the plugins in WordPress is simple. We will first edit the following code by ourselves. In the WordPress plugin directory we will enter the plugin directory we want to cancel updating and find the main plugin file. We will place the code we have arranged according to ourselves in the function.php file and after the plugin update warning in the WordPress admin panel will be gone

 

function.php

 

function disable_plugin_updates($value)
{
    unset($value->response['jwt-authentication-for-wp-rest-api/jwt-auth.php']);
    unset($value->response['buddypress/bp-loader.php']);
    unset($value->response['anspress-question-answer/anspress-question-answer.php']);
    return $value;
}
 
add_filter('site_transient_update_plugins', 'disable_plugin_updates');

if you want disable all plugins updates, you can use the following code.

 

function.php

 

add_filter('site_transient_update_plugins', '__return_false');

2 Comments

  • zvodret iluret


    obviously like your website however you have to check the spelling on quite a few of your posts. Many of them are rife with spelling issues and I find it very troublesome to tell the truth nevertheless I?¦ll definitely come again again.

    reply
  • Sankary


    I have been surfing online more than 3 hours today, yet I never found any interesting article like yours. It’s pretty worth enough for me. In my opinion, if all site owners and bloggers made good content as you did, the net will be a lot more useful than ever before.

    reply

Leave a Reply

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