BuddyDev

Search

[Resolved] howto define member type url slugs without default "/members/"

Tagged: 

  • Participant
    Level: Enlightened
    Posts: 27
    studioleland on #13879

    Hello,

    We have 2 member types: member-type1 and member-type2. We need to change the url slug based upon member types. I know I can change the members slug site-wide via define( ‘BP_MEMBERS_SLUG’, ‘members’ ) in the wp-config file. However that will change for all member types. Our goal is the following:

    mysite.com/member-type1/username/
    mysite.com/member-type2/username/

    add_action( ‘bp_setup_globals’, ‘bp_core_define_slugs’, 11 ); // Can I filter this to conditionally check for member types and change slugs?

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #13891

    Hi Leland,
    Thank you for posting.

    I am sorry but that will be almost rewriting the url parser for BuddyPress.

    In BuddyPress, the profile url structure is not very flexible. It will need a lot of work which does not seem worth the outcome to me.

  • Participant
    Level: Enlightened
    Posts: 27
    studioleland on #13893

    No worries. Thanks for the support!

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #13896

    You are welcome!

The topic ‘ [Resolved] howto define member type url slugs without default "/members/"’ is closed to new replies.

This topic is: resolved