OSver. OpenSuse
I want to enable auto-update wordpress core, plugins and themes. well i have seen some hints that describe this process:
In file wp-config.php I should do some adding:
- Code: Select all
define( 'AUTOMATIC_UPDATER_DISABLED', false );
define( 'WP_AUTO_UPDATE_CORE', true );
Also in file /wp-includes/functions.php
add_filter( 'auto_update_plugin', '__return_true' );
add_filter( 'auto_update_theme', '__return_true' );
And this settings do not upgrade core, plugins and themes to newest version.
Also I use plugins e.g:
- Easy Updates Manager
- Companion Auto Update
- Simple Automatic Updates
This plugins do not work.
but i guess that i have to do more codecorrections in the wp-config:
- Code: Select all
define( 'WP_AUTO_UPDATE_CORE', true );
//this is by default false
and add this to the functions.php
// Disable dev core update
add_filter( 'allow_dev_auto_core_updates', '__return_false' );
// Enable Plugin auto update
add_filter( 'auto_update_plugin', '__return_true' );
add_filter( 'auto_update_theme', '__return_true' );
The first line should enables all core updates, and the second line should help to disable the dev core update.
additionally we have to take care that the file permissions match on the server!