Never been able to get this working in anything other than wp-config or bp-custom in functions.php it appears to be too late to be acknowledged – not useful in one wants portability via functions.php for a theme