Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Awaken Solutions Inc.

    (@awakensolutions)

    Hi Bob, sorry for the delay in my reply. No, it does not automatically hide any menu items that link to that page.

    Plugin Contributor Awaken Solutions Inc.

    (@awakensolutions)

    Hi Bob,

    Looking into your question further, one way to automate the hiding of a menu item based on the current user’s permissions would be to use the plugin “If Menu”:
    https://wordpress.org/plugins/if-menu/

    It allows you to show menu items only if certain conditions are met and, importantly, allows you to write your own custom condition functions. So you could write a custom function that verifies if the user’s permission matches the permissions of the page that the menu item is linking to. If it does, you show the menu item. If not, you don’t.

    Thread Starter Bob

    (@bobschecter)

    Thanks. In fact that’s one of my favorite plugins. Appreciate the help.

    Plugin Contributor Awaken Solutions Inc.

    (@awakensolutions)

    My pleasure.

    If you do go that route, note that our plugin prepends “simple-restrict-” to the page permission slug, and uses this as the new user meta (we do this to avoid conflicts with other user metas).

    So, for example, if you created a permission with a slug of “gold-subscriber”, the newly available user meta is actually called “simple-restrict-gold-subscriber”.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Menu Restriction’ is closed to new replies.