Hook to remove tabs on profile depending on user role

This topic contains 3 replies, has 3 voices, and was last updated by  Alex Howes 6 years, 6 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #2142

    Alex Howes
    Buyer
    Post count: 175

    Hello,

    I’m writing a snippet to remove tabs from the user’s profile depending on that user’s role. I’ve done a similar thing for GD listings, where I used the hook geodir_detail_page_tab_list_extend. Is there an equivalent for UsersWP?

    Thanks 🙂
    Alex

    #2145

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #2147

    Patrik
    Moderator
    Post count: 1971

    Hi Alex Howes,

    Try using the filter ‘uwp_profile_tabs’ for add/remove tabs in user profile page.

    Let me know if any questions.

    Regards,
    Patrik

    #2214

    Alex Howes
    Buyer
    Post count: 175

    Thanks for the pointer, I’ve got it working now 🙂

    Alex

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

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

Open Support Ticket