Skip to:
Content
Pages
Categories
Search
Top
Bottom

Add New Tab Private to each user


  • bigbankclub
    Participant

    @bigbankclub

    I have searched for a way to add a new tab private to each user. Meaning I’d like to place items in this new tab that is unique to each user…??

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

  • shanebp
    Moderator

    @shanebp

    How to add tabs and sub-tabs: https://gist.github.com/shanebp/5d3d2f298727a0a036e5

    Add the unique content by writing your code in the …_screen_content functions. For example, function animals_screen_content()

    Change 'user_has_access' => bp_is_my_profile() to 'user_has_access' => true if you want everyone to see subtabs.


    bigbankclub
    Participant

    @bigbankclub

    bp-profile-tab-and-subnav.php << where is this to placed in the directory?


    danbp
    Moderator

    @danbp

    Copy the whole content of that example file into bp-custom.php.

    You can also transform it into a mu-plugin by just adding it some header information.

    Once done, you can test the tabs and try to understand how they work. And then apply your own preference.


    bigbankclub
    Participant

    @bigbankclub

    So I’m guessing — that for each user I want share a unique item I need to edit code?

    ** The idea is to share information for the each user; but unique to each user.

    So 100 users need to access a private link unique to them — I think this process will need one to create a page each time?


    bigbankclub
    Participant

    @bigbankclub

    The tab exists — But how is content added? I could add ACF as a quick fix; but unique content per user is not option..??

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