WordPress with version 3.7, enabled auto updates for all minor WordPress releases. WordPress developers did this to make the update process of WordPress core more streamlined and easy. But some of us may find updating themes and plugins difficult too, and we have a solution to automate that too.
Auto Update Plugins And Themes In WordPress
WordPress has these features built into the core, but are disabled by default. But you can easily enable them, by adding a small piece of code to your theme’s functions.php file.
Add the below code to enable automatic updates for plugins.
add_filter( 'auto_update_plugin', '__return_true' );
And this code for themes.
add_filter( 'auto_update_theme', '__return_true' );
It is always a good idea to check your website for proper functioning after you install/update any plugin/theme. This is required to make sure that the updated plugin’s/theme’s code doesn’t conflict with other themes and plugins. If you automate the process, you are installing every update as soon as it arrives, which may lead to malfunctioning of your website. Moreover, you will never know which plugin created the problem.
This enables automatic updates for only those themes and plugins that are downloaded/installed from WordPress repository, and not others.