API for implementing paid subscriptions
- Agnostic API that can be extended with any payment provider
- Implement site subscriptions and optionally restrict access to paying subscribers only
- API to implement entity/group specific subscriptions
- API to restrict access to posts and downloads
To implement custom logic when the subscription is created, listen to
create, subscription event.
To implement custom logic when the subscription cancelled, listing to
Note that the subscription can be cancelled at period end, so check
before terminating access to features. Use
expire, subscription hook to do additional clean up
for when subscription has expired after being cancelled with a future expiration.