• Resolved lukiano880

    (@lukiano880)


    Hello.
    I have 10 pages:
    Page 1
    Page 2
    Page 3

    And 10 levels: Level_Page_1, Level_Page_2, …

    Each user has access to some of those pages.
    User_1: Page_1, Page_5
    User_2: Page_4, Page_5, Page_7

    It’s possible get the level access of page outside the page?

    I want to create a link list, or menu, that shows only the pages the user has access to.
    I can use the Shortcodes or the code

    if(rua_get_user()->has_level($level_id)) {
        //show Page link
    }

    But I would like to do it dynamically, because the pages and levels will be incremented.
    Thank you

    • This topic was modified 1 year, 7 months ago by lukiano880.
Viewing 1 replies (of 1 total)
  • Plugin Author Joachim Jensen

    (@intoxstudio)

    It is currently not possible to programatically get a list of all pages that are restricted by a given level.

    For your use case, you could look into the following:

    1. Create new navigation menus in the WP admin and hide menu items for users without select levels.
    2. Use the Visibility Control addon to automatically hide posts/pages from all archives, lists, widgets, etc. for users without select levels.

    I hope this helps!

Viewing 1 replies (of 1 total)
  • The topic ‘List of pages with access’ is closed to new replies.