Custom Capabilities not Working
-
I have built a site that will generate dynamic custom capabilities upon creation of a user, so that when a new user is created, they will have a page created with all of their information, and only that user can update their data.
For instance, my username is ‘fridaynext’, so my custom capability is ‘fridaynext’, and I require ‘fridaynext’ in the S2Member meta box, on the page with my data. However, when I load that page in a private window (not logged in), I can still see all the data.
Does the Custom Capability meta box NOT block everyone who does not have that custom capability from viewing the page? I’m reading that I might need to add a PHP statement to the page’s content to block the content to everyone except the owner, but I feel like that would defeat the purpose of the ccap meta box.
TL;DR – Why is the custom capability meta box not applying the capability I enter?
- The topic ‘Custom Capabilities not Working’ is closed to new replies.