zaq wsx
zaq wsx

Reputation: 41

Wordpress autoupdate

Info:

I want to enable auto-update wordpress core, plugins and themes. In file wp-config.php I added:

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:

This plugins do not work.

Upvotes: 1

Views: 452

Answers (1)

Tobias
Tobias

Reputation: 1564

you must set this code in your wp-config:

define( 'WP_AUTO_UPDATE_CORE', true );
//this is by default false

and add this to your 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 enables all core updates, and the second line disable the dev core update.

Make shure that the file permissions match on your server!

if this is not working look at your error-log and give us the output

Upvotes: 2

Related Questions