Automatic WordPress Core, Plugin, Theme Updates

Glenn Glenn's Blog 0 Comments

Automatic background updates were introduced in WordPress 3.7 in an effort to promote better security and to streamline the WordPress update experience. Here we examine how to do this manually and then also with a WordPress Automatic Update Plugin

WordPress Automatic Core Updates 

If WordPress is not updating ‘out of the box’ then manually setting up automatic WordPress Updates for the core is very easy via wp-config.php:-


define( 'WP_AUTO_UPDATE_CORE', true );

Update Tweaks

  • Value of true – Development, minor, and major updates are all enabled
  • Value of false – Development, minor, and major updates are all disabled
  • Value of 'minor' – Minor updates are enabled, development, and major updates are disabled

WordPress Automatic Plugin and Theme Updates

Plugin and theme updates require a filter and “To enable or disable updates in all cases, you can leverage the auto_update_$type filter, where $type would be replaced with “plugin” or “theme”.”

add_filter( 'automatic_updates_is_vcs_checkout', '__return_false', 1 );

To specifically enable development (nightly) updates, use the following:

add_filter( 'allow_dev_auto_core_updates', '__return_true' );

To specifically disable minor updates, use the following:

add_filter( 'allow_minor_auto_core_updates', '__return_false' );

To specifically enable minor updates, use the following:

add_filter( 'allow_minor_auto_core_updates', '__return_true' );

To specifically disable major updates, use the following:

add_filter( 'allow_major_auto_core_updates', '__return_false' );

To specifically enable major updates, use the following:

add_filter( 'allow_major_auto_core_updates', '__return_true' );

WordPress Automatic Update Plugin

If the above seems like a hassle to you then you can gain full control of all your automatic WordPress Updates via the WordPress Easy Updates Manager Plugin. This will give you the full breadth of changes with basic radio toggle buttons.

automatically-update-wordpress-core-plugins-theme-plugin  Automatic WordPress Core, Plugin, Theme Updates automatically update wordpress core plugins theme plugin

This plugin also works with WordPress Multisite.

 

About the Author
Automatic WordPress Core, Plugin, Theme Updates 0da77002febbfe28d15144a57bbcc2c9 s 180 d mm r g

Glenn

A highly experienced WordPress Web Developer, Front-end and Back-end Developer & New Media Specialist with extensive knowledge of a wide spectrum of technologies in the Development and Creative Industries built up over a number of years.

Leave a Reply

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