BuddyDev

Search

[Resolved] Change or remove member type from slug

Tagged: ,

  • Participant
    Level: Initiated
    Posts: 3
    Pieter Bas on #38002

    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/

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2934
    Ravi on #38042

    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 3 years ago by Ravi.
  • Participant
    Level: Initiated
    Posts: 3
    Pieter Bas on #38051

    Hi Ravi,

    Great, it worked! Thanks so much for your help!

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2934
    Ravi on #38054

    Hello Pieter,

    Thank you for the acknowledgment. I am glad that I could help.

    Regards
    Ravi

You must be logged in to reply to this topic.

This topic is: resolved