
How to Enable WordPress Automatic Updates
- August 4, 2016
- Leave a comment
As we already know, WordPress’ Themes and Plugins require timely updates. For simple and non-critical plugins, it can be a tedious task to keep on updating again and again from WordPress Dashboard. An automatic updates feature for Themes and Plug-ins is disabled by default in WordPress. You can enable automatic updates by adding a filter in functions.php file.
To enable automatic updates for Plugins, add the following lines of code in function.php file:
1 2 |
// Enable automatic updates for plugins add_filter('auto_update_plugin', '__return_true'); |
To enable automatic updates for Themes, add the following lines of code in function.php file:
1 2 |
// Enable automatic updates for themes add_filter('auto_update_theme', '__return_true'); |
Automatic updates can not be enabled from wp-config.php file so, one must use filters for this purpose.
User Comments