Skip to:
Content
Pages
Categories
Search
Top
Bottom

Create new custom nav tab on members user profile


  • masievi
    Participant

    @masievi

    Hi, have this problem that I want to create a custom nav tab on the user profile section and add a new tab with custom content. have this code :

    function my_bp_nav() {
        ?>
         <a class="nav-tab" href="#">Active tab </a>
        <?php
      }
      add_action( 'bb_members_admin_user_profile_nav', 'my_bp_nav' );

    that only adds the tab but I don’t know how to add content on it. Example of what I currently have

    https://www.awesomescreenshot.com/image/24261311?key=c5f25734da26509dd640526a5fc521da
    Kindly help me with guidance to do this. Thank you in advance

Viewing 4 replies - 1 through 4 (of 4 total)

  • shanebp
    Moderator

    @shanebp

    You are using BuddyBoss – these are the forums for BuddyPress.
    Ask your question on the Facebook page for BuddyBoss Community.


    masievi
    Participant

    @masievi

    Thank you @shanebp actually i am trying to do this via BuddyPress
    And this is my code

    `function my_bp_nav() {
    ?>
    <a class=”nav-tab” href=”#”>Active tab </a>
    <?php
    }
    add_action( ‘bp_members_admin_user_profile_nav’, ‘my_bp_nav’ );`


    shanebp
    Moderator

    @shanebp

    There is no such hook in BuddyPress – bp_members_admin_user_profile_nav


    masievi
    Participant

    @masievi

    Is there any other approach I can use to add the nav tab on the user’s profile? Kindly if can assist me, this will help a lot.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar