Disable Automatic Updates

WordPress automatically updates core files, plugins, themes, and translations by default to keep your site secure. However, on some websites—especially client projects or heavily customized setups automatic updates can break functionality or conflict with custom code. This snippet disables all automatic updates, giving you full control over when and how your site updates.

<?php

// Disable all automatic core updates
add_filter( 'auto_update_core', '__return_false' );

// Disable automatic plugin updates
add_filter( 'auto_update_plugin', '__return_false' );

// Disable automatic theme updates
add_filter( 'auto_update_theme', '__return_false' );

// Disable translation updates
add_filter( 'auto_core_translation_updates', '__return_false' );

?>
PHP

Usage:

The snippet disables all automatic WordPress updates core, plugins, themes, and translations.

Benefits:

  • Full Control Over Updates – Decide when to update core, plugins, and themes.

  • Prevents Conflicts – Avoid unexpected issues with custom code or third-party plugins.

  • Safe for Production Sites – Useful for client sites where stability is critical.

Frequently Asked Questions

Yes, but you must manually update WordPress, plugins, and themes regularly to maintain security.
Yes. All automatic updates, including security releases, will be disabled. You must monitor and apply updates manually.
Yes. You can selectively remove or comment out specific lines in the snippet to disable only plugin or theme updates while keeping core updates enabled.

Related Links

Related Snippets

Display Gravity Forms Entries for the Logged-In User
Display Gravity Forms submissions for logged-in users on the frontend using a simple shortcode. Learn...
Hide WooCommerce Prices for Non-Logged-In Users
Hide WooCommerce product prices for visitors who aren’t logged in. It will encourage users to...
Picture of Kishan D
Kishan D
I’m a web developer who builds with WordPress, WooCommerce, and Shopify, and I enjoy exploring React and creating gaming & tech content.

SHARE POST

Leave a Reply