This topic contains 1 reply, has 2 voices. Last updated by ekarma (Volunteer Moderator) 3 years, 3 months ago.
Topic Author | Topic |
---|---|
Posted: Friday Oct 4th, 2013 at 4:35 pm #60156 | |
First time posting on the forum…love s2member…it’s organized and flexible. Anyway, here’s the trouble I’m running into… I need to get the custom capability associated with a post, without considering the current user’s capabilities. So say I’ve got a post that is set to “Require Level #1 (or higher)” requiring the custom capability “music”. I want to get “music”…the custom capability associated with the post…to use in some code for a custom WordPress single post template. Here’s a few snippets of what I’ve been trying…
The above yields: I was hoping there would be at least two items in the array, not only the level but the ccap as well. This works to get the Level associated with the post:
But this does not return the custom capability for the post:
Am I on the right track? Is this possible? Please help! |