Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: members slug


B.
Participant

@bandonrandon

thanks, rich, what happens if BP_ENABLE_ROOT_PROFILES is enabled? Also the problem is that I am setting an option in then db and want to set it to just the http://domain.com/ BP_MEMBERS_SLUG / without the username part as the username will change with each login. I saw `bp_core_get_user_domain( $user_id )` but that requires you to set the $user_id for the user you want the profile url for.

I think I can do
if(!defined(BP_ENABLE_ROOT_PROFILES){
$base_member_url=get_site_url().MEMBER_SLUG;
} else {
$base_member_url= get_site_url();
}

I was just hoping there would be a function for the base member url without a username attached.

Skip to toolbar