WordPress automatically checks for updates to itself and all installed themes and plugins. This adds an annoyingly long delay to loading (any) WordPress pages. In only happens once per day and subsequent page-loads donât do it, but it is so long, that it makes me think twice about whether it is worth opening that first page at all (especially if I only need to do a quick thing rather than spending all day in WordPress).
I only update once in a while anyway, and would much rather perform updates manually anyway, so I created a plugin to remove the Updates button from the admin bar. I thought that would do the trick, but apparently in only removes the button and the actual check is still performed in the background.
Every other program in the world lets you turn them off automatic updates, so I expect that there should be a way to do the same for WordPress, but if there is, it is a little too-wellâhidden.
When I tried to find a solution, all of the questions that came up were the opposite, about finding a way to force automatic updates to actually apply (not just automatically check for updates).
How can automatic update checks be turned off in WordPress?
This worked for me to disable it on localhost – which was very annoying since it’s behind a firewall and the timeout wait was huge.
Note that I’m not sure whether disabling WP_HTTP_BLOCK_EXTERNAL is necessary. I don’t recommend that you disable it on a server that requires communication with other servers.
Okay, here is a solution that removes available updates, and also prevents updates checking.
This solution assumes PHP > 5.3 (since it uses an anonymous functions)
Part 1) Clears any existing updates:
Part 2) Prevents the outgoing HTTP request that runs the actual check:
Points to note:
Mark Jarquith already posted about this on his blog a while ago. Basically it just bails requests to the public SVN repos on wp dot org via the WP HTTP API filters.
For Plugins (must get placed inside the plugin):
For Themes (must be placed inside
functions.php
of the theme and only works for the currently active theme):John Blackburn has written a plugin to disable theme updates.