Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to add extra menu tab after notofication or messages tabs?

  • @kiran4wordpress

    Participant

    Hi All,

    I want to know how to add extra tab after notification or messages tabs. I have done some what using below code

    function my_setup_nav() {
    global $bp;

    bp_core_new_nav_item( array(
    ‘name’ => __( ‘Endorsement’, ‘buddypress’ ),
    ‘slug’ => ‘endorsement’,
    ‘position’ => 100,
    ‘user_has_access’ => bp_is_my_profile(),
    ‘screen_function’ => ‘messages_screen_inbox’,
    ‘default_subnav_slug’ => ‘messages_screen_inbox’,
    ‘item_css_id’ => $bp->messages->id
    ) );
    }
    add_action( ‘bp_setup_nav’, ‘my_setup_nav’ );

    function my_endorsement() {
    bp_core_load_template( ‘my_endorsement’ );
    }

    I added this in functions.php. After that it is created a tab, but the thing is when i click on tab it is navigating to slug link endorsement page with highlighting Endorsement tab, but in that page after the tab it is showing empty content. How to add my functionality related to endorsement there.

    Thanks Inadvance….

  • The topic ‘How to add extra menu tab after notofication or messages tabs?’ is closed to new replies.
Skip to toolbar