One of our readers recently inquired about how to update WordPress plugins automatically. We’ll show you how to enable automatic updates for WordPress plugins in this article. Many users find it inconvenient that they must update a plugin almost every other day. We’ll also show you how to turn off automatic updates for some plugins.
When and Why Should WordPress Plugins Be Updated Automatically?
You must also manually install plugin and theme updates. You must initiate the update yourself for major releases. When a security or minor release is available, WordPress can automatically update itself.
See why you should always use the most recent version of WordPress in our guide. It is critical to keep your WordPress site up to date in order to ensure its security and stability.
To get new features and fixes, you’ll need to update your themes and plugins. The same is true for any and all plugins and themes you have installed on your website.
Many popular plugins are updated on a weekly basis. You might have noticed, however, that some of them are updated more frequently than others.
Some users find it annoying that there is an update available for one or more plugins every time they log in.
What if, similar to WordPress, you could allow trusted developers to auto-update plugins?
Let’s take a look at how to update plugins in WordPress automatically.
How to Install Updates for Some WordPress Plugins Automatically
You can use your WordPress dashboard to enable automatic updates for individual WordPress plugins and themes. In WordPress 5.5, automatic updates for WordPress plugins and themes are introduced.
Individual Plugin Auto Updates Enabled
Simply go to the WordPress admin area’s Plugins » Installed Plugins page. The list of all your installed plugins will appear here, with a link to ‘Enable auto-updates’ next to each one.
To enable automatic updates for individual plugins, click the ‘Enable auto-updates’ link.
Using WordPress Themes to Enable Automatic Updates
To update WordPress themes, go to Appearance » Themes and select the theme you want to update automatically.
You can turn on automatic updates for that theme by clicking the ‘Enable auto-updates’ link from here. The theme information pop-up will appear as a result of this action.
When a new update is installed on your website, you’ll also receive an email notification. WordPress will now update these plugins and themes automatically whenever a new version is released. That is all there is to it.
Using WordPress Plugins to Set Up Automatic Updates
Simply add this code to your theme’s functions.php file or a site-specific plugin to have WordPress automatically install all plugin updates.
This filter instructs the WordPress automatic updater to install plugin updates as soon as they become available.
If you also want to update your themes automatically, you can use the following code:
After an update, how do I revert to a previous version of the plugin?
Despite the fact that most good developers thoroughly test their plugins, there are always a few bugs that can cause your site to malfunction. Incompatibilities with plugins or themes can cause problems for your website.
Installing a WordPress backup solution is the first step in protecting your website.
It would be easier to simply rollback the update if you know which plugin or theme update caused the issue. However, restoring your WordPress site from a backup appears to be a time-consuming process.
Here’s how to undo plugin or theme updates quickly and easily. The WP Rollback plugin is simple to install and activate.
Below each plugin installed on your site, you’ll notice a new Rollback option. Return to your WordPress site’s plugins page after activation.
You can rollback your plugin to any previous version by clicking the Rollback button. See our guide on how to rollback WordPress plugins for more information. It can also undo theme changes.
You might also be interested in our WordPress guide on how to enable automatic updates for major releases. We hope this article was helpful in setting up automatic plugin updates in WordPress.
You can also find us on social media sites such as Twitter and Facebook. Please subscribe to our YouTube Channel for WordPress video tutorials if you enjoyed this article.
Why is it so important to build an email list today? (6 Reasons)
15 Things You Must Do Before Changing WordPress Themes Checklist
How to Transfer Your Blog from WordPress.com to WordPress.org Correctly
Beginner’s Guide to Installing Google Analytics in WordPress
Editorial Staff Information
Over 1.3 million readers around the world rely on it. WPBeginner’s Editorial Staff is a group of WordPress experts led by Syed Balkhi.
Please assist as nothing has worked out.
2. When adding code to functions.php, the error message “Unable to communicate back with site to check for fatal errors” appears, so the PHP change was undone. 1. The mentioned plugin is no longer available for download or use. You’ll have to use another method to upload your PHP file change, such as SFTP.”
Please keep your information current.
https://kiuz.it/beginners-guide/how-to-upload-files-to-wordpress-for-beginners-using-ftp/ In the following article, we’ll show you how to use FTP: Thank you for informing us about the plugin; you can manually add the code to avoid the message by using FTP.
You can remove the link for the “Automatic Plugin Updates” plugin because it is no longer active. It was shut down on October 2, 2018 and is no longer available for download.
Thank you for informing us that the plugin has been deactivated.
Thank you. Since October 2018, the auto update plugin has been unavailable for download. Is there any other option? Roshni is a young woman from India.
Please see our tutorial on how to manage WordPress updates automatically.
That’s very helpful. Thank you very much.
After activating the plugin and ticking the boxes next to the ones I want to be included in the auto-update… Thank you very much. Or should we just wait and come back later to check the site? I’m curious if there’s any indication that the plugins are being updated. Thank you for providing this information. Thank you again for your assistance with this. I installed the mentioned plugins on my test wordpress site (I want to see how well they work before putting them on my production site).
Install the WP Rollback plugin. Test automatic updates by rolling back a few of your plugins to older versions.
First and foremost, thank you for the article. Or will it cause any problems in the future? Is it, however, recommended to include the above-mentioned auto-update plugin code and theme code?
Please notify me!
Troubleshooting indicates that the site is a managed GoDaddy account, so if anyone else is experiencing the same issue, this could be the cause. After that, I tried installing the recommended plugin, but it didn’t work either.
As a beginner, I was unsure where I should place this code. Both examples use line 1, but I’m using a child theme, which requires that styles be enqueued first.
I’d really appreciate it if you could respond. I put it at the bottom, as per the CSS rule, but I’m not sure if that will cause any issues.
You can add the code to your functions.php file at the end.
This does not appear to have worked, as I am receiving a plug-in that requires updating. Because I’m a beginner and don’t know PHP, I’m not sure if I’ve properly nested it (I haven’t added any nesting at all)?
My script is as follows:
wp_enqueue_scripts, my_theme_enqueue_styles; add_action( ‘wp_enqueue_scripts’,’my_theme_enqueue_styles’ );
‘auto_update_plugin’, ‘__return_true’ ); add_filter( ‘auto_update_plugin’, ‘__return_true’ );
‘auto_update_theme’, ‘__return_true’ ); add_filter( ‘auto_update_theme’, ‘__return_true’ );
Why did you choose functions.php instead for educational purposes? And that’s the end of it. Lines like this should be added to the wp-config file, according to the WordPress codex (which I haven’t done because I don’t know how).
Thank you again for your assistance, and I apologize if this is a silly question.
Could you please help me? I’m not sure what I did wrong, though further reading revealed why you added this to functions.php rather than the codex (as they specifically say not to put it in for these).
Please, pretty please? Consider that for every person who takes the time to say something or ask a question, there are probably ten more who have recently passed away. I don’t know what else to do as a beginner, and this article is aimed at beginners.
We don’t know why the code didn’t work for you. Make sure you include it in the functions.php file. You could also use the Easy Updates Manager plugin, which allows you to set automatic updates from the admin area.
Willn’t any new wordpress framework updates overwrite any changes you make to the functions.php file?
In that case, you can add code to the functions file of the child theme. Alternatively, you can use a site-specific plugin to include your code. If you’re using a framework, you’re almost certainly also using a child theme.
As of 5/16/2017, the WP Rollback plugin had not been updated in 8 months. Steve is a great guy. Thank you. Do you still recommend it or attest to its viability for WordPress versions prior to 4.7.4?
Yes, we still think it’s a good idea.
This code should be placed in wp-config.php, according to the WordPress Codex. What are the advantages and disadvantages of putting it in functions.php?
“Do NOT add add_filter() calls directly in wp-config.php,” it says. WordPress isn’t fully loaded, which can lead to conflicts with other programs like WP-CLI.”
Thank you very much, Peter. I was perplexed because the codex also includes some definitions that should be placed in wp-config.php, while filters should be placed in functions.php. Ah, the filters, the filters.
You left out one minor detail… A few more screenshots would have been beneficial. Thank you. WHAT IS THE BEST WAY FOR A BEGINNER(!) TO INSTALL THIS CODE?
Good day, Gail. By logging in with your ftp credentials to your site and editing functions.php in the /public_html/ folder, you can insert this code.
In the /public_html/ folder, there are numerous functions.php files. Which one should I pick?
One is in wp-includes, others are in a few of my plugin folders, and one is in each of my theme folders.
You must edit the functions.php file in the folder of your currently active theme.
I’m just dropping compliments – this is by far the most useful newsletter I’ve ever seen. Your one-topic specific ‘how to’ posts are fantastic – simple to understand and solve problems I didn’t even realize I had! Thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank you, thank As I learn how to complete the fine details, my blogs are becoming more sophisticated.
I’m glad you found it useful.
This is an excellent article! Thank you for making it public!!
Is there supposed to be a distinction between the two? Just curious, both plugin and theme code snippets state the same thing.
Thank you once more!
No, and thank you for letting us know. The code snippet has been updated.
Should this be the second snippet for themes?
‘auto_update_theme’, ‘__return_true’ ); add_filter( ‘auto_update_theme’, ‘__return_true’ );