Yes you can do that by 2 stage…
First: add the code to wp-config.php
define( 'WP_AUTO_UPDATE_CORE', true );
Next, there is 3 ways…
1.plugins
Such as WP Auto Updater
2.functions.php
By adding some simple codes in theme functions
3.mu-plugins
i use this method, create a php file in wp-content/mu-plugins directory, with any name you like, add the code and save it, it just work, remember add <?php
before code & ?>
After it.
Here is code with comment
//Auto update
add_filter( 'allow_dev_auto_core_updates', '__return_false' ); // disable development updates
add_filter( 'allow_minor_auto_core_updates', '__return_true' ); // Enable minor updates
add_filter( 'allow_major_auto_core_updates', '__return_true' ); // Enable major updates
add_filter( 'auto_update_plugin', '__return_true' );
add_filter( 'auto_update_theme', '__return_true' );
add_filter( 'auto_update_translation', '__return_true' );
You can delete first line (dev) bcs it is disabled by default.
If you want disable a update as translate for example, simple change true to false