WordPress 3.7 added automatic updates. How does this work, and how can I configure this feature?
2 comments
Comments are closed.
WordPress 3.7 added automatic updates. How does this work, and how can I configure this feature?
Comments are closed.
Automatic updates are automatic.
The basic, default behavior in WordPress 3.7 is automatic update of core for minor versions (i.e.
X.Y.Z
toX.Y.Z+1
.)No configuration options are exposed in the UI. To change the behavior, you’ll need to modify your
wp-config.php
file, or add some filters:Easy Disabling
Add the following to
wp_config.php
:Alternatively, add the following filter:
Core Update Control
Via
wp-config.php
:Via filters:
Themes and Plugins
All-or-Nothing Auto-Update Themes and Plugins:
Theme and Plugin updates are disabled by default. To enable via filter:
These filters are passed to the update object; so it is possible to manipulate that object to target specific Themes or Plugins to be updated, either to whitelist (include) or exclude from automatic updates.
Translation Files
Translation file updates are enabled by default. To disable via filter:
Update Result Emails
The updater sends a result email on success, failure, or critical error. To disable via filter:
This filter can also be used to manipulate update emails according to email
$type
(success, fail, critical), update type object$core_update
, or$result
:Further Reading
Codex entry here. More information here.
You can check if your site and server configuration support automatic updates with the Background Update Tester plugin. From Nacin: “This plugin checks your site for compatibility and explains any problems.”