OnPoint Plugins

  • Plugins
    • Advanced Sidebar Menu
      • Basic Version
        • Documenation
        • Usage
        • Developer Docs
      • PRO Version
        • Demo
        • Usage
        • Developer Docs
    • Go Live Update Urls
      • Basic Version
        • Documenation
        • Usage
        • Troubleshooting
      • PRO Version
        • Demo
        • Usage
        • URL History
  • About
    • Services
    • Showcase
  • Blog
  • Contact
  • Support
  • Log In
← Back to support

Hide menu items when not logged in

Resolved

Requested: 1 year and 11 months ago

Hi,

I’m using Content Control plugin to hide/show pages for certain roles. Is there a way to hide Sidebar menu items as well that are restricted?

Thanks!

Plugin: Advanced Sidebar Menu

  1. Avatar for OnPoint PluginsOnPoint Plugins

    1 year and 11 months ago

    Hello Health,

    I’m not familiar with the Content Control plugin, however giving the Content Control plugin a quick look, I was able to come up with some filters which may allow the Page menus to exclude restricted items.

    Adding these filters to your active theme’s functions.php file may do the trick.

    Note: These filters have not been thoroughly tested by us as there is a lot of complexity to the Content Control plugin.

    Another option we found is to the set the following in the Restriction settings.

    • “Protection” tab
    • “Handling matching within archives” section
    • “Hide the restricted items from the archive page.” option

    Have a great day!

     

     

  2. Avatar for Health E-Solutions B.V.Health E-Solutions B.V.

    1 year and 11 months ago

    Great this works!

    Thanks!

New Response Cancel reply

You must be logged in to respond. Only PRO members are allowed to respond to support requests.

© 2025 · WordPress Development · Terms Of Service · Privacy Policy · Cookie Policy · Log in

  • Plugins
  • Blog
  • Contact