# Subscriptions (developer reference)

> **For site administrators:** use **MediaBlaster → Docs** in wp-admin (subscription guides appear only when `WPST_SUBSCRIPTIONS_ENABLED` is true in `wp-config.php`) or read the user guides below.

## User guides

- [Subscriptions Overview](subscriptions-overview.md)
- [Subscriptions General Settings](subscriptions-general.md)
- [API and Auth](subscriptions-api-auth.md)
- [Payment Providers](subscriptions-payment-providers.md)
- [Subscription Tiers](subscriptions-tiers.md)
- [Access Groups](subscriptions-access-groups.md)
- [Subscribers](subscriptions-subscribers.md)
- [Subscription Logs](subscriptions-logs.md)
- [Stripe Checkout Setup](stripe-checkout-setup.md)

## Developer quick reference

- Master enable: `define( 'WPST_SUBSCRIPTIONS_ENABLED', true );` in `wp-config.php` — sole switch; `WPST_Subscription_Settings::is_enabled()`
- Hide REST/HTTPS admin notice: `WPST_SUBSCRIPTIONS_HIDE_HTTPS_WARNING` in `wp-config.php`
- Legacy option key (read-only): `rovidx_smart_tv_options['rovidx_smart_tv_subscriptions_enabled']`
- Settings options: `wpst_subscription_options`, `wpst_payment_options`
- REST namespace: `/wp-json/mediablaster/v3/` — see [REST API Overview](rest-api-overview.md) and [Subscriptions and Apps API](rest-api-subscriptions.md) in **MediaBlaster → Docs**
- Enable check: `WPST_Subscription_Settings::is_enabled()`
- DB schema version: `1.1.0` (Stripe tier columns)

See `includes/subscriptions/` and `.cursor/skills/wp-smart-tv-subscriptions/SKILL.md` for implementation details.
