ppc_assign_exceptions() and blocking anonymous users from a specific post
-
Hello,
I am working with PublishPress Permissions and I’m trying to use the
ppc_assign_exceptions()API.My goal is to block read access to a specific post for anonymous (logged-out) users only, while keeping access unchanged for all other users and groups.
I have reviewed the documentation for
ppc_assign_exceptions(), but I am not sure what is the correct way to target the anonymous/logged-out user group.Specifically, I would like to know:
- Is there a built-in metagroup for anonymous or logged-out users?
- Is
wp_anonthe correct metagroup ID to use? - What is the recommended way to assign a read exclusion for a single post to anonymous users only using the API and the function
ppc_assign_exceptions()?
My objective is:
- Post ID: 3416
- Anonymous/logged-out users: cannot view the post
- Logged-in users: no change
- Existing permissions for other groups: no change
Thank you very much for your help.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
You must be logged in to reply to this topic.