Article updated in November 2026.
Sometimes you need to stop WordPress from checking for updates or showing update notices. Typical cases are a legacy project that depends on an exact plugin version, a staging copy, or a client site where updates go through a separate deployment process. This guide shows which hooks and constants do what, and where they work best. Read the risks section first.
Before you disable updates: the risks
Turning off update checks is a trade-off. Outdated plugins and core are among the most common reasons WordPress sites get hacked. Many plugin and core releases are security fixes, so a site that never updates collects known vulnerabilities over time. You also stop receiving bug fixes, compatibility improvements and new features.
If you do disable updates, consider these safeguards:
- Keep a regular backup and test restores.
- Update manually on a schedule, ideally on a staging copy first.
- Disable only what you must, for example one problematic plugin, instead of everything.
- Monitor security advisories for the plugins you run.
Where to put the code
All PHP snippets below can go into the functions.php file of your active theme (wp-content/themes/your_theme/functions.php). Two practical notes:
- If you use a child theme, add the code to the child theme’s functions.php, not the parent’s. Otherwise it may be overwritten, or it may not run at all.
- A better place is a small must-use plugin: a PHP file in wp-content/mu-plugins/. It keeps working when you switch themes and cannot be deactivated from the admin screen by accident.
Constants such as WP_AUTO_UPDATE_CORE belong in wp-config.php in the site root, above the line that says to stop editing.
Disabling plugin updates
Turn off automatic plugin updates
Since WordPress 5.5 you can enable automatic updates for each plugin on the Plugins screen. To switch automatic plugin updates off for every plugin, use the auto_update_plugin filter:
add_filter( 'auto_update_plugin', '__return_false' );
This stops automatic installation only. WordPress still checks for updates and shows notices, and you can still update manually.
Turn off automatic updates for one plugin only
Usually you want to exclude a single plugin. The filter receives the update item, so you can compare its slug:
|
1 2 3 4 5 6 |
add_filter( 'auto_update_plugin', function ( $update, $item ) { if ( isset( $item->slug ) && 'your-plugin-slug' === $item->slug ) { return false; } return $update; }, 10, 2 ); |
Hide plugin update notices
To remove the update badges and the “new version available” messages, filter the plugin update transient:
|
1 2 3 4 5 6 7 |
function disable_plugin_updates( $value ) { if ( isset( $value ) && is_object( $value ) ) { unset( $value->response ); } return $value; } add_filter( 'site_transient_update_plugins', 'disable_plugin_updates' ); |
With this code the dashboard no longer shows available plugin updates, so you will not know when a security release appears. Use it only when you track updates some other way.
Using a plugin instead of code
Some plugins, such as “Disable All WordPress Updates”, switch off updates for the core, plugins and themes in one go. Before installing one, check when it was last updated and whether it is compatible with your WordPress version. An abandoned plugin that touches the update system is a risk in itself.
Disabling WordPress core updates
There are two different tasks here: stopping automatic installation of core updates, and hiding the checks and notices. They use different tools.
Automatic core updates: the WP_AUTO_UPDATE_CORE constant
Add one of these lines to wp-config.php:
define( 'WP_AUTO_UPDATE_CORE', false );turns off all automatic core updates, including minor and security releases. This is the most aggressive option and is not recommended.define( 'WP_AUTO_UPDATE_CORE', 'minor' );allows only minor releases (for example 6.8.1 to 6.8.2), which usually contain security and bug fixes. Major releases (6.8 to 6.9) are not installed automatically. This is the default behaviour of WordPress on most sites.define( 'WP_AUTO_UPDATE_CORE', true );allows all core updates, major ones included.
If you prefer filters, allow_major_auto_core_updates and allow_minor_auto_core_updates give the same control:
|
1 2 |
add_filter( 'allow_major_auto_core_updates', '__return_false' ); add_filter( 'allow_minor_auto_core_updates', '__return_true' ); |
For most sites, the ‘minor’ setting is the sensible compromise: you control major upgrades but still receive security fixes without effort.
Hiding core update checks and notices
The classic way is to short-circuit the core update transient:
add_filter( 'pre_site_transient_update_core', '__return_null' );
Note that this does not leave you with notifications, as it was sometimes described. It hides update information for the core, so the admin stops showing that a new version exists. Automatic updates are effectively blocked as well, because WordPress believes nothing is available. If __return_null produces PHP notices on your version, use a variant that returns a minimal object:
|
1 2 3 4 5 6 7 |
add_filter( 'pre_site_transient_update_core', function () { global $wp_version; return (object) array( 'last_checked' => time(), 'version_checked' => $wp_version, ); } ); |
Disabling all automatic updates at once
If you need to switch off every background update (core, plugins, themes and translations), WordPress offers a global switch in wp-config.php:
define( 'AUTOMATIC_UPDATER_DISABLED', true );
The matching filter is automatic_updater_disabled. A stricter constant is DISALLOW_FILE_MODS. It blocks installing and updating plugins, themes and core from the admin area, and it also removes the ability to edit files there. It is useful on locked-down production sites where code is deployed via Git or CI.
Combined snippet: no updates and no notices
This snippet disables automatic plugin updates, hides plugin update notices and hides core update information:
|
1 2 3 4 5 6 7 8 9 10 |
add_filter( 'auto_update_plugin', '__return_false' ); add_filter( 'pre_site_transient_update_core', '__return_null' ); function disable_plugin_updates( $value ) { if ( isset( $value ) && is_object( $value ) ) { unset( $value->response ); } return $value; } add_filter( 'site_transient_update_plugins', 'disable_plugin_updates' ); |
If you also want to stop automatic theme updates, add add_filter( 'auto_update_theme', '__return_false' );.
What to do if the code does not work
- Wrong file. Make sure the code is in the functions.php of the active theme. With a child theme, use the child theme’s file.
- PHP syntax errors. Check the code for missing semicolons or quotes, and turn on
WP_DEBUGon a staging site to see errors. - Another plugin overrides the filters. Update managers and some security or hosting plugins hook into the same filters. Try a higher priority number, for example
add_filter( 'auto_update_plugin', '__return_false', 99 );. - Caching. Update information is stored in transients, so old notices may remain until they expire. Clear the object cache, or wait for the next check.
- Host-level updates. Some managed hosts update WordPress on their own and ignore your code. Check the hosting panel settings.
How an AI assistant can help
An assistant such as Claude can review your functions.php or mu-plugin and spot syntax errors or conflicting filters. It can also adapt the snippets above, for example to exclude one specific plugin by slug. Always test the generated code on a staging copy before it goes live, and check it against the official WordPress developer documentation.
Summary
To stop automatic installation, use auto_update_plugin and WP_AUTO_UPDATE_CORE. To hide notices, filter the update transients. Disable only what you really need, put the code in a child theme or mu-plugin, and keep a manual update routine so the site does not fall behind on security fixes.
Leave a Reply