If you’re in charge of maintaining a church, ministry or client website, you know how frustrating it can be for someone who has administrative permission to update plugins.
Normally, this isn’t a problem, but sometimes this can lead to a broken site. I’ve had modded plugins updated, before, so you can image my relief when I found I had a backup. Modded plugin update = plugin modification gone!
Another situation arose when a non-profit contacted me with some web issues. Their website was broken. The reason? Plugin updates.
There are obviously a number of good reasons to prevent WordPress form checking if your plugins need updating. I would first try using a user role editor or some other work around to avoid misguided plugin updates, as plugin update notifications are by nature a good idea.
However, there’s always an exception, especially if you have multiple site Admins.
How-To Disable WordPress Plugin Updates
This snippet simply prevents WordPress from checking if there’s any updates for your plugins.
This could be useful if you’re creating a website for a client, and don’t want them to update their plugins incase you have changed the code in it, or if you’re worried that the update will break the site.
Simply add this to your theme’s functions.php, or better yet, create your own functionality plugin so you can easily toggle this on and off.
[cc lang=”php”][/cc]
Easy.
[via WP Snippets]
April says
What if you have to create the client as an admin due to a function they need access to that is not allowed in another user role, however, you do not want them to update the plugins, but you want access to see if an update is available. Does that make sense?
Eric Dye says
Yes. Use a role editor plugin, create a Super Admin for yourself and modify the Admin (or create a new user type) to block access to plugins. 🙂
April says
Awesome! Thanks!!
Eric Dye says
😉