Customizing the buddypress slug can be done without any code update. First for clarity purpose, what I am talking here is changing the the base buddypress slug like :
http://www.fiazhuysn.com/members/fiazhusyn/ to https://fiazhusyn.com/ninja/fiazhusyn/
‘members’ is the default slug for a buddypress installation, Buddypress generates this using following method:
So to change the buddypress slug,
Your buddypress slug will now be slug of this new page, which in our case was ninjas.
Another method of changing the slug is to define the constant ‘BP_MEMBERS_SLUG’ in wp-config.php file. You can define it like:
//Define the constant in wp-cofig.php define ( 'BP_MEMBERS_SLUG', 'ninjas' );