[ad_1]
Hi.
I would like to add restriction on another place than just content inside posts.
For example custom field.
I call custom field meta in the template, so that would be something like this.
Currently I am using something like:
<?php if (pmpro_hasMembershipLevel(["2", "3", "4", "5"])) { ?>
<!-- You can access this. -->
<?php } else { ?>
<!-- You can not access. (Display: This content is for xxx and xxx members only.) -->
<?php } ?>How to do this so that it checks per particular post which membership has rights and which does not?
- This topic was modified 2 hours, 22 minutes ago by .
