Here is how I do it:
Manually create folder: wp-content/mu-plugins/
Then put auto-update.php in there.
<?php /* Plugin Name: Plugin Background Auto-Update Description: Automatic updates installed plugins and themes. Author: Lambert@MillionDollarServer.com */ // [Configuring Automatic Background Updates] Reference: https://codex.wordpress.org/Configuring_Automatic_Background_Updates // [Must Use Plugins] Reference: https://codex.wordpress.org/Must_Use_Plugins // [Writing a Plugin]]Reference: https://codex.wordpress.org/Writing_a_Plugin // 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