Hi KTS915,
It is when the membership expires. So if you have a membership that is recurring every one month. If the membership is canceled or a payment missed, the role is reverted.
Does that answer your question?
Cheers,
Timothy
Thread Starter
KTS915
(@kts915)
Thanks for the response.
Does this mean then that this part of the plugin’s behavior is predicated on the iThemes Exchange Membership plugin being installed?
Yes and no.
You can assign a WP role based on any product being purchased, but the typical use case is in conjunction with Memberships.
Thread Starter
KTS915
(@kts915)
Yes, I realize that the plugin’s other functions could work without the Membership plugin, but you seem to be saying that this particular function of having the role expire does depend on Memberships. Is that right?
It requires recurring payments, but this is bundled with the membership plugin.
Thread Starter
KTS915
(@kts915)
OK, thanks. That makes perfect sense.
I was just wondering if this could be used to link a different membership plugin to iThemes Exchange. While it seems it could, it won’t set an EOT. I’ll have to play with this a little more!
Thanks again!
No problem.
Here is where the role is deactivated on subscription expiration. You could trigger that action in another membership plugin if you wanted to.
https://github.com/iron-bound-designs/exchange-addon-wp-roles/blob/master/lib/required-hooks.php#L127
Thread Starter
KTS915
(@kts915)
Thanks.
But I think what I’m looking for is a way to set the EOT at the time of purchase. Then the other membership plugin would handle the role reversion itself.
Thread Starter
KTS915
(@kts915)
So I see. I think it’ll need a little free-standing PHP! Thanks again!