I am getting
Fatal error: Call to undefined function add_filter() in example.com/wp-config.php on line 20
add_filter( 'auto_update_plugin', '__return_true' );
My plugins.php file is present and add_filter() is defined inside of it.
I just want to enable automatic updates for core, plugins and thems.
What am I doing wrong?