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™

add ccaps upon successful completion of quiz

s2Member Plugin. A Membership plugin for WordPress®.

add ccaps upon successful completion of quiz

Postby nathardwick » October 31st, 2011, 12:34 pm

I'm using a quiz plugin to run a test for students and upon successful completion of the quiz, I'd like to add a custom capability to that user to make additional content available.

Has anyone done this? Is it possible using API...?

Any help would be much appreciated.

N
User avatar
nathardwick
Registered User
Registered User
 
Posts: 25
Joined: August 8, 2010

Re: add ccaps upon successful completion of quiz

Postby slyhands » October 31st, 2011, 11:22 pm

Bump this topic...I have a similar situation and would love to accomplish the same thing!
User avatar
slyhands
Registered User
Registered User
 
Posts: 36
Joined: September 1, 2011

Re: add ccaps upon successful completion of quiz

Postby Cristián Lávaque » November 1st, 2011, 8:30 pm

You can add a custom capability the way you'd add a WordPress capability, just prefix it with access_s2member_ccap_, if I remember correctly.
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: Yahoo [Bot] and 1 guest

cron