# PHSG Membership Account UX

Adds a membership status card with renewal CTAs to WooCommerce My Account (dashboard + memberships endpoint).

## Hooks and filters
- `phsg_membership_one_time_url` — override the one-time membership product URL.
- `phsg_membership_subscription_url` — override the subscription product URL.
- `phsg_membership_subscription_product_ids` — array of product/variation IDs that count as the membership subscription.
- `phsg_primary_membership` — choose the primary membership when a user has multiple.
- `phsg_membership_expiring_soon_days` — adjust the expiring-soon window (default 30).
- `phsg_membership_allow_early_renewal` — `true` to show Renew for active memberships not in the expiring window (default `false`).
- `phsg_membership_show_subscribe_secondary_cta` — toggle the secondary “Subscribe (Auto-Renew)” CTA for non-members (default `true`).

## Placement
- Dashboard: `woocommerce_account_dashboard`.
- Memberships endpoint: `woocommerce_account_{members-area-endpoint}_endpoint` (uses the configured Memberships endpoint slug) with a fallback in `woocommerce_account_content` when on the memberships area.
