I have a special request that requires either a ccap possibly a value in a custom field. what I am looking for is a way to clear a ccap when the eot is either extended or cleared at the end of the subscription. Similar to what happens to the userlevel. I assume I could use the same function with a different action? Anyone know this function or away to accomplish this feat?
Clear a specific cap at eot or when eot is extended
Tim, thank you, I saw that and I believe it is referring to when a ccap is added via paypal. I neglected to mention we are adding ccaps via the api. I’ll Re read it in the morning.
If I am not over thinking this, I need to create something like
function atEOT {$user->remove_cap(‘access_s2member_ccap_myccap’);}
I haven’t found that hook for eot. Or better a hook for when the eot is updated.
Actually responding made me think to search the forum a different way. that brought me to https://www.s2member.com/forums/topic/which-hook-for-eot-events-to-use/
This may contain the answer.