any update to add independent custom tabs?

This topic contains 1 reply, has 2 voices, and was last updated by  Patrik 6 years, 8 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #1782

    LI ALEX
    Free User
    Post count: 2

    Hello,

    I checked this topic:

    https://userswp.io/support/topic/create-new-tabs/#post-277

    but I am not sure whether there is any update method, do we still need the following way to add individual custom tabs?

    add_filter(‘uwp_profile_tabs’, ‘uwp_add_profile_custom_tabs’, 10, 3);
    function uwp_add_profile_custom_tabs($tabs, $user, $allowed_tabs) {

    $tabs[‘xxxxx’] = array(
    ‘title’ => ‘Hello’,
    ‘count’ => 1
    );

    return $tabs;
    }

    add_action(‘uwp_profile_xxxxx_tab_content’, ‘uwp_add_profile_xxxxx_tab_content’);
    function uwp_add_profile_xxxxx_tab_content($user) {
    echo “Hello World”;
    }

    #1786

    Patrik
    Moderator
    Post count: 1971

    Hi,

    Yes, you need to use the same code for adding more custom tabs in the profile page.

    Let me know what you want to modify or implement so that I can get more idea about your needs.

    Regards,
    Patrik

Viewing 2 posts - 1 through 2 (of 2 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket