Reply To: Change Group Member Slug
Hi, Thanks for the guide.
Looks like the code only change the tabs name, not change the URL I wanted.
—-
I found what I need in core files:
wp-content/plugins/buddypress/bp-groups/bp-groups-loader.php
line 471 – 481
$sub_nav[] = array(
'name' => sprintf( _x( 'Members <span>%s</span>', 'My Group screen nav', 'buddypress' ), number_format( $this->current_group->total_member_count ) ),
'slug' => 'members', //THIS IS THE ONE
'parent_url' => $group_link,
'parent_slug' => $this->current_group->slug,
'screen_function' => 'groups_screen_group_members',
'position' => 60,
'user_has_access' => $this->current_group->user_has_access,
'item_css_id' => 'members',
'no_access_url' => $group_link,
);
I change the ‘slug’ => ‘fans’,
It’s works changing the url from group-name/members to group-name/fans
but the page can’t find any fans (members) even it has.
well..still trying now..