Hiding Menu Items and Widgets

I am looking... but I can't seem to find a way to hide menu items from users who are not logged in under a membership subscription. Is it possible to do so?

  • Mason
    • DEV MAN’s Sidekick

    There's no widget rules within Membership, but you could edit your theme to check for a specific user level or subscription. Basically create an if statement that would check for the subscription and display content based on that.

    The statements for membership are as follows:

  • Mason
    • DEV MAN’s Sidekick


    As we haven't heard back from you we're going to assume the problem
    was sorted out and mark this ticket as resolved.

    If it wasn't resolved, or you have any more questions related to this
    thread please feel free to post them below and tick the 'Mark as Not
    Resolved (re-open)' box below the post area (or else we'll miss it!)

    Otherwise, thanks for using the forums, and for being a member of WPMU
    DEV, it's a pleasure to help you out and we look forward to being of
    assistance in the future.


  • Koko818
    • WPMU DEV Initiate

    No sure if this is called a bump on here, but I would like to reopen this and ask if I can use the statements above to hide entire menus depending on the users membership. I'm building a site that has say "buyers" and "sellers", I would like the buyers to have their own menu while the sellers have theirs. Is this a possibility?

  • Emanaku
    • The Incredible Code Injector

    Hi Koko818,

    yes, that is possible.
    In the themes Appearance -> Menues you define all the menu items for both sellers and buyers.
    In Membership -> Access Levels you define two access levels "buyers" and "sellers" (and a third one "visitors"). Then you can add positive or negative rules (or boths) regarding the menus (and much more) which are visible or invisible at these access levels.

    Have fun!

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.