PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

new ccap deleting old ccaps

s2Member Plugin. A Membership plugin for WordPress®.

new ccap deleting old ccaps

Postby yolle555 » April 1st, 2011, 3:02 pm

Hi!
when a user buys an access to a particular section on my page, he gets a custom capability. if he buys more of them, he has effectively more ccaps. up until now I was manually adding the ccaps because the plugin wasn't working correctly. with the new version of s2member it works and automatically upgrades the user and adds the ccap. the problem is that it overwrites all the other ccaps that particular user had. anyone knows solution to this?
thanks
User avatar
yolle555
Registered User
Registered User
 
Posts: 13
Joined: January 19, 2011

Re: new ccap deleting old ccaps

Postby Cristián Lávaque » April 1st, 2011, 3:09 pm

Sure. :)

Next to the Custom Capabilities field when you create the modification button, you'll see a [?] link that gives some extra information:

Optional. This is VERY advanced. For full details, see:
s2Member -> API Scripting -> Custom Capabilities.

*ADVANCED TIP: You can specifiy a list of Custom Capabilities that come with this purchase. Or, you could tell s2Member to (ADD) Custom Capabilities to any that already exist for a particular Member. Just start your list of Custom Capabilities with a (+) sign.

So instead of setting a Member's full set of Custom Capabilities to:
music,videos,archives,gifts

You could (ADD) new ones to any that already exist:
+calendar,forums,tools

Or to prevent any changes, (ADD) nothing:
+
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 2 guests

cron