Community Support Forums — WordPress® ( Users Helping Users ) — 2011-05-03T02:03:25-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=6273 2011-05-03T02:03:25-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6273&p=13978#p13978 <![CDATA[Re: When can custom capability be tested for?]]>

Thanks for reporting back.

Statistics: Posted by Cristián Lávaque — May 3rd, 2011, 2:03 am


]]>
2011-05-03T00:13:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6273&p=13967#p13967 <![CDATA[Re: When can custom capability be tested for?]]>
Thanks a lot for pointing it out!
Steffen

Statistics: Posted by sruefer — May 3rd, 2011, 12:13 am


]]>
2011-05-02T22:43:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6273&p=13963#p13963 <![CDATA[Re: When can custom capability be tested for?]]>
You can create your test user normally and add the ccap to his profile later, you'll notice a field for that in the last part of the page.

I hope that helps. :)

Statistics: Posted by Cristián Lávaque — May 2nd, 2011, 10:43 pm


]]>
2011-05-02T09:49:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6273&p=13942#p13942 <![CDATA[When can custom capability be tested for?]]>
I have a quick question concerning custom capabilities. I introduced the following access levels:

- Unregistered user (i.e. not registered at all)
- Level 0: free but registered
- Level 1: yearly payment
- Level 1 + custom capability "newsletter": yearly payment, different from Level 1

I am only running the site on my local machine for now, and I created test users for Level 0 and Level 1. I was not able to create a user for Level 1 + ccap="newsletter" (please advice on how to do that without actually going to Paypal), but I was testing for Level 1 + ccap="newsletter" for some pages and content. I noticed that nothing showed up for such tests.

Therefore I would like to check if I am correct in my assumption: an access level and/or custom capability can only be tested for if at least 1 user exists that has such access?

Thank you, kind regards,
Steffen

Statistics: Posted by sruefer — May 2nd, 2011, 9:49 am


]]>