Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/opspj007/wordpress-saas-subscription-manager/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Sell memberships, digital services, recurring plans and usage-based access through WordPress.
Quick start
- Activate. Go to Subscriptions > Settings: add Stripe secret key, create a Stripe webhook to the URL shown, paste its signing secret.
- Create pages: one with [wpssm_pricing], one with [wpssm_dashboard]; select them in Settings.
- Subscriptions > Plans > Add Plan: price, interval, trial days, limits (e.g. api_calls=10000).
- Restrict content: use the "Subscriber access" box on any post/page, or wrap content in [wpssm_restrict plans="any"]...[/wpssm_restrict] (plans="12,15" for specific plan IDs).
Developer API
wpssm_user_has_access( $plan_ids = ['any'], $user_id = 0 ) wpssm_consume( 'api_calls', 1, $user_id = 0 ) // WP_Error on 402/403/429 wpssm_remaining( 'api_calls' ) wpssm_get_subscription() Action: do_action( 'wpssm_event', $type, $data ) fires for every subscription/payment/quota event.
REST
POST /wp-json/wpssm/v1/usage {meter, qty} GET /wp-json/wpssm/v1/check?meter=x GET /wp-json/wpssm/v1/me Auth: "Authorization: Bearer " (members generate keys on their dashboard).