Thursday, October 5, 2017

Configuring Wordpress Automatic Background Updates Plugin

Don't want always login to my WP admin Dashboard just for update the Plugin.

Here is how I do it:

Manually create folder: wp-content/mu-plugins/
Then put auto-update.php in there.

Plugin Name: Plugin Background Auto-Update
Description: Automatic updates installed plugins and themes.
// [Configuring Automatic Background Updates] Reference:
// [Must Use Plugins] Reference:
// [Writing a Plugin]]Reference:
// Automatic updates for All plugins:
add_filter( 'auto_update_plugin', '__return_true' );
// Automatic updates for All themes:
add_filter( 'auto_update_theme', '__return_true' );

Make sure the permission:

chown -R www-data:www-data wp-content/mu-plugins/

And enjoy your day!

No comments:

Post a Comment