This website uses cookies to allow us to see how the site is used. If you continue to use this site, we assume that you are okay with this. If you want to use the sites without cookies, please see our privacy policy.

Enable Automatic Updates for WordPress Plugins and Themes

With version 3.7 WordPress introduced automatic updates. By default, these are on for maintenance and security releases only, but the underlying code is smart enough to support updates for plugins and themes. Here’s a simple plugin that will enable automatic updates for themes:

/**
 * Plugin Name: Enable Automatic Updates for Themes
 */
add_filter( 'auto_update_theme', '__return_true' );

And here’s one for plugins:

/**
 * Plugin Name: Enable Automatic Updates for Plugins
 */
add_filter( 'auto_update_plugin', '__return_true' );

Please note that these will work only if your host is configured to support automatic WordPress updates. You can learn more about configuring and debugging automatic background updates in the codex.

One thought on “Enable Automatic Updates for WordPress Plugins and Themes

  1. It’s also worth mentioning that you can get email notification and any debugging messages on updates by adding:
    add_filter(‘automatic_updates_send_debug_email’,’__return_true’);

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.