This topic contains 4 replies, has 3 voices. Last updated by Brendan Moorehead 4 years, 10 months ago.
Topic Author | Topic |
---|---|
Posted: Tuesday Feb 21st, 2012 at 4:30 pm #5897 | |
I am considering upgrading to S2MemberPro, but before I do, I want to know that the free version is robust and works well and is easy enough for me to use (since it’s the foundation of the Pro version) before buying Pro, so I’m wondering if you can tell me where I could find help with this issue (I can’t find anything in the free Knowledge Base or Forum): If I enter a custom value, such as “uwlpg1″ to the “Require Custom Capabilities?” field on a page, doesn’t that create the custom capability value that I would use in PayPal buttons and custom capability short codes and php codes? Or is there somewhere else that a value is entered in order to generate a custom capability value? I tried the above method (entering “uwlpg1” in the “Require Custom Capabilities” field on a page), and then entered a short code on the page like this: [s2If current_user_can("access_s2member_ccap_uwlpg1")]Content for this capability (e.g. link to a page). [/s2If] But I get an error message at the top of a page (Login Welcome Page) where I have several access restrictions. This is the error message: Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘current_user_can’ was given in /home/content/70/8904870/html/ultimateweightlossprotocol/wp-content/plugins/s2member/includes/classes/sc-if-conds-in.inc.php on line 138 What is the correct way to establish a custom capability value that will work in the short codes? I’ve read over the sections related to custom capabilities in the API Scripting area in S2Member and can’t see what I might be missing. It seems like your documentation on establishing custom capability codes might be either thin or my installation has a bug. |