• Skip to primary navigation
  • Skip to main content
  • Skip to footer

Chad Ritchie

Graphic Designer, Front-End Web Developer

  • Blog
    • WordPress
  • Projects
    • Graphic Design
    • Web Projects
  • Photos
  • Services
  • Contact

How to disable WordPress plugin updates

May 4, 2012 By Chad Ritchie

This snippet of code prevents WordPress from checking for plugin updates. For security reasons, it is important to keep third-party WordPress plugins up-to-date. However, there are times when you might create a site for a client and don’t want them to update their plugins. Perhaps you have changed a plugins code or concerned a plugin update could cause problems or break the site.

Simply paste the following code into your sites functions.php file. The functions.php file is located in your sites theme folder.

remove_action( 'load-update-core.php', 'wp_update_plugins' );
add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) );
?>
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X

Filed Under: Blog, WordPress Tagged With: code

Footer

Chad Ritchie Web & Graphic Design