• madeinmada4u

    (@madeinmada4u)


    Hi,

    In the settings, hide / logged in users/ wholesaler etc, but when I’m connected as a wholesaler role, the menu: Mim x Angie smith is still showing.

    see menu below

    tahnks for your help

    Dimitri

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author HelgaTheViking

    (@helgatheviking)

    always worth checking for conflicts with themes and other plugins and caching.

    if not a conflict, might be a role/capability issue.

    do your wholesalers have any of the same capabilities as say customer role?

    Because I use current_user_can to check where to hide or show an item sometimes a user can have capabilities across roles.

    Nowhere in WP do roles have to be distinct and it might be more precise if I relied on capabilities, but roles make for a better UI. It’s a trade-off.

    Especially when trying to hide an item you have to be extra certain that no other roles share that capability.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.