produce list of capabilities given the CC restriction
-
I’m writing code to send emails when a Post is published, but only to those Users who have access to this Post based on the CC setting for the Post. Step 1: capture the CC setting for the Post. Step 2: identify all the WP capabilities allowed under this CC Post restriction. Step 3: cycle through Users with these capabilities and send emails. I’m missing Step 2: I need to learn the WP capabilities associated with this particular Post’s CC restriction.
Is there a CC function I can call that will return the list of capabilities (Editor, Contributor, etc.) of a specific Restriction? Perhaps something from shortcodes.php.
- The topic ‘produce list of capabilities given the CC restriction’ is closed to new replies.