Support » Plugin: Content Control - User Access Restriction Plugin » Page children restriction works only for direct children

  • Hello! I have tree-shaped family of pages: main-sections-topics. I wanted to restruct access for the main pages and all its children (sections and topics).

    So I made two rules: for the main page and for its children. But this doesn’t work for “grandchildren” which remained open! They are easily found via search and accessed.

    What should I do to close the access to all sub, subsub and so on pages?

    • This topic was modified 9 months, 3 weeks ago by artildo.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Daniel Iser

    (@danieliser)

    @artildo – Is there not a condition for Ancestors? I know we have written it for some of our targeting based plugins.

    Thread Starter artildo

    (@artildo)

    There’s an option for “specific page’s children”. So I had to mention all “children” in order to restric access to grandchildren.

    I wish there would be an option not only for direct children, but for the whole tree of pages.

    Plugin Author Daniel Iser

    (@danieliser)

    In WordPress granchildren and farther down the tree are called “Ancestors”.

    We might not have that condition in here yet but if I’m being honest it will be some time before we can get it done here as we have much larger projects that take up most of our time.

    If you want to copy paste from our other project or submit a Pull Request on our github we would be happy to advise.

    Its probably a few lines of code but would require some knowledge and confidence to properly port the code from one plugin.

    Specifically that condition does exist in our Popup Maker plugin, both use the same targeting rule system etc.

    Thread Starter artildo

    (@artildo)

    In WordPress granchildren and farther down the tree are called “Ancestors”.

    Thank you! This was a bit confusing. I changeed to “Ancestors of”, and the whole bunch of grandchildren

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Page children restriction works only for direct children’ is closed to new replies.