Custom Buddypress Permalink and Members URL Slugs

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,

  1. Create a new page. For example create a page by the title of “Ninjas” (its slug will be ninjas) and publish it.
  2. Go to yourwebite.com/wp-admin/admin.php?page=bp-page-settings and select this page as ‘Members’ page.

Your buddypress slug will now be slug of this new page, which in our case was ninjas.

Another Method

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' );