define( ‘WP_AUTO_UPDATE_CORE’, true );
There is one little problem with this code. It also enables development or nightly updates. To disable nightly builds and development updates you need to add this code in a site-specific plugin or in your theme’s functions.php file.
add_filter( ‘allow_dev_auto_core_updates’, ‘__return_false’ );
This filter will disable automatic updates for nightly builds or development updates.
How to Enable and Disable Automatic Updates in WordPress for Major Releases
No comments:
Post a Comment
Please mention your comments.......