Tagged: member type, slug
Hello,
is there a way to change or remove the member type from the directory slug?
meaning, remove or change [type] in this example: http://www.examlpe.nl/members/type/men/Hello Pieter,
Thank you for posting here. we can not remove this.
Try the following code to change:
add_filter( 'bp_members_member_type_base', function( $base ) { // Replace custom with your desired string. return _x( 'custom', 'member type URL base', 'buddypress' ); } );
If not works. Please do let me know with the environment you are working with i.e. BuddyBoss or BuddyPress
You can place this code in ‘bp-custom.php’ file.
https://buddydev.com/docs/buddypress-guides/what-is-bp-custom-php/
Regards
Ravi- This reply was modified 2 years, 5 months ago by
Ravi.
- This reply was modified 2 years, 5 months ago by
Hi Ravi,
Great, it worked! Thanks so much for your help!
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
This topic is: resolved