Disable WordPress Auto Updates with a Snippet

Learn how to disable auto updates in WordPress using WPCodeBox. You can disable WordPress updates for code, plugins and themes.

Meet WPCodeBox: The Best Code Snippets Plugin for WordPress
faces
Join thousands of developers and agencies who are working better and faster using WPCodeBox

WordPress updates itself and other plugins by default and without asking you. This might sound great until an update breaks your site.

To avoid that and ensure your site’s stability, you can disable WordPress auto updates using a snippet. You can disable all WordPress updates, but you can also disable updates for just themes or just plugins.

Below is the code snippet from the video used to disable WordPress auto updates:


//add_filter('automatic_updater_disabled', '__return_true')

add_filter('auto_update_plugin', '__return_false')
add_filter('auto_update_theme', '__return_false')

Related Tutorials

WPCodeBox is a WordPress Code Snippets Manager that allows you to share your WordPress Code Snippets across your sites.