Ask any question about WordPress here... and get an instant response.
How can I disable WordPress core updates programmatically?
Asked on Nov 13, 2025
Answer
To disable WordPress core updates programmatically, you can use a filter in your theme's `functions.php` file or a custom plugin. This method involves using the `automatic_updater_disabled` filter to prevent automatic updates.
<!-- BEGIN COPY / PASTE -->
add_filter('automatic_updater_disabled', '__return_true');
<!-- END COPY / PASTE -->Additional Comment:
- This code snippet disables all automatic updates, including core, themes, and plugins.
- Place this code in your theme's `functions.php` file or a custom plugin to ensure it executes correctly.
- Disabling updates can pose security risks, so consider alternative update management strategies.
Recommended Links:
