• Resolved hshah

    (@hshah)


    Is it possible to restrict access on whether certain user meta fields have been populated or not?

Viewing 1 replies (of 1 total)
  • Plugin Author Daniel Iser

    (@danieliser)

    @hshah – Currently no, but it is something we are looking at.

    In the mean time you can register a custom condition pretty easily if you can follow examples:

    – Filter to use and example of simple optionless conditions: https://github.com/JunglePlugins/Content-Control/blob/master/classes/Conditions.php#L382-L409

    You can see that each just has a callback which is a PHP function that returns true or false.

    So you make a custom condition that checks the user meta however you like and return true or false. Then register a new condition with that functions name as the callback.

    Hope that helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Restrict Based on User Meta’ is closed to new replies.