Support » Plugin: BuddyPress Member Type Generator » Snippet for member type directory

  • Hello,
    Great plugin!
    I’ve got low php skills 🙁
    Yet I’d like to tweak (a bit) bp-functions.php, to display tabs in the members directory, directing to each member type directory url..
    How do I retrieve the member type directory url, is there a function for that?

    Thx!

Viewing 1 replies (of 1 total)
  • Plugin Author Brajesh Singh

    (@sbrajesh)

    Thank you.
    You can use this to print the url

    
    bp_member_type_directory_permalink( $member_type );
    

    or this to get the url

    
    $url = bp_get_member_type_directory_permalink( $member_type );
    
    

    You will need to change the member type with the actual one.

    Hope that helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Snippet for member type directory’ is closed to new replies.