Last updated on September 13, 2023

Disable Automatic Updates

Don’t know where to add this snippet? Read our guide: How to add code snippets.

Disable automatic updates.

If you need to disable the auto update functionality in WP, this code snippet is for you. WordPress includes a feature that allows it to automatically update WordPress core, plugins and themes to the latest version. If you want to disable automatic updates in WordPress, you can use the following code snippet:

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

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

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

This code filters the auto_update_core, auto_update_plugin, and auto_update_theme hooks and returns false, to disable the WP auto update functionality. This disables automatic updates for WordPress core, plugins, and themes. Once you have added this code to your functions.php file, WordPress will no longer automatically update itself, its plugins, or themes.

Please note that disabling automatic updates can leave your website vulnerable to security vulnerabilities and other issues. It is recommended to regularly update WordPress, its plugins, and themes to ensure the security and stability of your website.

Disable automatic WordPress updates

Remember that disabling automatic updates means you are responsible for manually updating WordPress core, plugins, and themes for security and compatibility reasons. It’s generally recommended to keep your WordPress site and its components up to date to maintain security and functionality.

Additionally, some web hosting providers may have their own auto-update mechanisms that override these settings, so be sure to check with your hosting provider if updates are still occurring after applying these changes.

Last updated on September 13, 2023. Originally posted on April 30, 2023.

Leave a Reply

Your email address will not be published. Required fields are marked *