Is there any way to disable core and plugin updates? I am modifying a plugin and bit of WordPress Core (I know its a sin to do so), but can’t help it.
3 comments
Comments are closed.
Is there any way to disable core and plugin updates? I am modifying a plugin and bit of WordPress Core (I know its a sin to do so), but can’t help it.
Comments are closed.
Yes you can do thatâ¦
Put this snippet in your
wp-config.php
file and you will able to disable core and plugin updates.Disable Plugin updates all together
It should be as easy as that:
Deny (or reroute) Updates for Themes/Plugins
Single core and theme updates can be deactivated by this script my Mark Jaquith:
For plugins from within some themes files
For themes from within a themes
functions.php
fileDisable specific plugins
From within any custom plugin as described in this answer here on the stack:
Core updates
Actually that should be as easy as that:
For older versions John Billion has written a complete plugin that targets them all.
Further info and fine grained control for Automatic updates
Andi Nacin just put up a post on WordPress/Make that gets into detail on that topic:
Version Control is a shut down switch:
The same goes for disabling the File and Themes Editor:
Single
wp-config.php
switch:and
More detail on the linked post.
Note: All above code is scraped during a 5 minute google search run and therefore not tested, only visually diffed/tested against the GitHub WordPress source code and GitHub search results. You have to verify the contents yourself. Also, for the future, please include such research in your question.
simple, don’t modify the core…… modifying the core is basically forking wordpress and unless you part of a development team that can maintain a fork for a long time you are putting your client into a dead end where the only upgrade path is to redevelop the site. He might be ok with that but it is something that needs to be agreed in advance.
Anyway, disabling the automatic update will not be enough in your case and you will need to also remove all the upgrade notifications from the dashboard, or better make sure that the cient doesn’t have FTP access to the server.
Same logic applies to non trivial plugins from a reputable source (example, jetpack) with the exception that in this case you might be able to maintain the fork for a long term.
To disable plugin updates and discourage anybody from trying to upgrade it manually you can just change the plugin’s name and its directory.
Of course you should use a plugin name and directory name not used by another plugin, something like
"${original plugin name} tailored for $client DON"T UPGRADE"
as the new plugin name and${original plugin name}-for-$client
as the new directory.