Re: Buddy press menu
Create a file called bp-custom.php, put that file in your plugins folder and add all your functions to customize BuddyPress in this file.
https://codex.buddypress.org/extending-buddypress/changing-internal-configuration-settings/
It says to use wp-config but don’t. Use bp-custom file then you wont ever loose the settings