Club Membership Plugin · v1.1.0

Club Membership — Admin Guide

Annual dues management with Stripe online payments, manual cash/check recording, a searchable member directory, front-end post publishing, and email post notifications.

How It Works

Club Membership tracks annual dues for any SVE club subsite. A member's dues status is reflected directly in their WordPress role: paid members are promoted to the Club Member role and gain access to member-only areas; unpaid or expired members drop back to Resident.

💳 Online Payment

Members pay by credit card through Stripe Checkout. In subscription mode dues auto-renew yearly; in seasonal mode members make a one-time payment each season. The club never sees card numbers.

💵 Cash / Check

Officers record in-person payments directly in the admin dashboard. The member's role upgrades immediately upon recording.

📋 Member Directory

Active dues-paid members browse a searchable grid of all current members. Officers see an extended table with dues details and a CSV export.

📝 Member Posts

Active members submit posts — with a featured image and optional document attachment — from the front end. No WP Admin access required.

📧 Post Notifications

Subscribed members receive an email whenever a fellow member publishes a post, including the featured image and a read-more link.

👥 Couples Membership

One subscription covers two linked accounts. The primary payer handles payment; both partners gain access immediately. Cancellation or expiry affects both accounts together.

Roles & Access Levels

The plugin uses SVE's custom WordPress roles. Never manually set roles for regular members — the plugin manages Club Member ↔ Resident transitions automatically based on dues status.

RoleDues stateAccess
Resident Unpaid / Expired / Cancelled Log in, view own dues status card, pay dues
Club Member Active + Browse member directory, submit posts, receive post notifications
Officer Active (unaffected by expiry) + Record payments, add members, view admin list, manage subscribers, export CSV
Administrator Never auto-downgraded All of the above + Settings, Membership Types, Import, Stripe config
ℹ️
Officer and Administrator roles are never automatically downgraded when dues expire. Only the Club Member role is changed automatically by the plugin.

Shortcode Reference

The plugin provides five front-end shortcodes and one login shortcode. Place each on a dedicated WordPress page. No shortcode accepts attributes — all behaviour is role-driven.

[cm_dues_status]

Purpose: Shows a member their current dues status and provides action buttons (Pay Dues, Manage Subscription).

Visible to: Any logged-in user. Guests see a "Please log in" message.

What it renders:

  • Status badge — Active / Expired / Cancelled / Not yet paid
  • Membership type (e.g. Single, Couple) and linked partner (if any)
  • Last payment date and method badge (Stripe / Cash / Check)
  • Dues expiry date
  • Membership type selector + partner options when payment is needed
  • Pay Annual Dues / Renew Membership button → Stripe Checkout (or waived activation for $0 types)
  • Manage / Cancel Subscription button → Stripe Billing Portal (subscription mode, Stripe members only)
  • Cash/check prompt when dues are not paid

Recommended page slug: my-membership — configure this in Settings → Page URLs.

On successful Stripe payment, Stripe redirects back to this page with ?cm_checkout=success&session_id=…. The shortcode verifies the session and activates membership immediately as a fallback if the webhook has not yet fired.

[cm_member_directory]

Purpose: Searchable directory of all active dues-paid members.

Visible to: Club Member role and above (active members + officers). Non-active users see a "must be an active member" notice.

What it renders:

  • Members see a card grid: avatar, display name, clickable email address. Paginated at 30 per page.
  • Officers (Editor+) see a full table with dues status, paid date, expiry date, payment method, and a Download CSV button.
  • A search box filters by name or email in real time (page refresh).

Recommended page slug: directory — assign the Member page template to restrict access to active dues-paid members.

[cm_member_dashboard]

Purpose: Welcome header and navigation card grid for the member home page.

Visible to: Any logged-in user (returns empty for guests).

What it renders:

  • Personalised "Welcome back, [First Name]!" greeting with a dues status badge
  • Expiry date if active; renewal warning banner if expiry is within 60 days
  • Navigation cards linking to: Club Calendar (if page exists), Member Directory, Submit a Post, Club Documents (if page exists), Email Preferences, My Membership

Place on the authenticated member home page (e.g. /members/). Assign the Member page template to restrict access to active dues-paid members.

[cm_submit_post]

Purpose: Front-end post submission form for active members.

Visible to: Active members (Club Member role). Non-active users see a warning notice.

What it renders:

  • Post title field (required, max 200 characters)
  • Rich text content editor (TinyMCE — bold, italic, lists, links)
  • Optional featured image upload (JPEG, PNG, GIF, WebP) with live preview
  • Optional document attachment (PDF, Word, Excel, TXT, ZIP — max 10 MB) with file preview
  • Publish Post button — post goes live immediately and triggers a notification email to all subscribers

Recommended page slug: submit-post. Assign the Member page template to restrict access to active dues-paid members. Attached documents appear as a download section at the bottom of the published post.

[cm_email_prefs]

Purpose: Let members manage their post notification subscription and see their recent email history.

Visible to: Any logged-in user. Guests see a "please log in" link.

What it renders:

  • Warning banner if the member's email is globally suppressed or has a Mailgun spam complaint
  • Toggle checkbox to subscribe/unsubscribe from post notifications for this club (saved via AJAX)
  • Recent emails list — the last 5 emails delivered to this address via Mailgun (pulled from Mailgun Events API; requires Mailgun to be configured in the SVE Mailer MU-plugin)

Recommended page slug: email-preferences. No tier restriction needed — the preference panel itself is only meaningful to logged-in users.

[cm_login_form]

Purpose: Club-aware login form with smart post-login routing.

Visible to: Guests only. Already-logged-in users are redirected automatically before the page renders.

What it renders:

  • Username/email and password fields with Remember Me checkbox
  • Error message if credentials are wrong (does not reveal whether username or password failed)
  • Configurable help text below the form (set in Settings → Login Page)

Post-login routing:

  • Active member (Club Member) → /members/
  • Expired / unpaid member (Resident with dues history) → /my-membership/
  • New resident with no subsite account → auto-enrolled as Resident, then → /my-membership/
  • Officer / Admin → /members/

Recommended page slug: club-login. Leave this page publicly accessible (no tier restriction).


Part 1 — Admin Setup Guide

Setup Checklist

Complete these steps once when first deploying the plugin. The order matters — create pages before entering their URLs in Settings.

  • Activate the Club Membership plugin on the club subsite
  • Create the required WordPress pages (Step 1)
  • Create membership types (Step 2)
  • Connect this club's Stripe account (Step 3)
  • Create Stripe products and price IDs in your connected account (Step 3)
  • Add Stripe Price IDs to each membership type (Step 3)
  • Configure billing mode and enter page URLs (Step 4 + 5)
  • Configure site navigation and access control (Step 6)
  • Test with Stripe test mode, then switch to live (Step 7)
ℹ️
Clubs no longer paste raw Stripe API keys anywhere. This platform uses Stripe Connect — you connect your club's own Stripe account once via a "Connect with Stripe" button, and the network handles the webhook centrally. See Step 3.

Step 1 — Create WordPress Pages

Create these pages in Pages → Add New. The slug matters — URLs entered in Settings must match. Each shortcode can be pasted as a block or in the classic editor.

Page titleRecommended slugShortcodePage Template
Club Home home (set as front page) (your public content) Club Public — visible to everyone
Club Login login [cm_login_form] Club Login — visible to everyone
My Membership my-membership [cm_dues_status] (default) — resident-gated; shortcode handles auth state internally
Member Home members [cm_member_dashboard] Member — requires active dues (Club Member role)
Member Directory directory [cm_member_directory] Member — requires active dues (Club Member role)
Submit a Post submit-post [cm_submit_post] Member — requires active dues (Club Member role)
Email Preferences email-preferences [cm_email_prefs] Member — requires active dues (Club Member role)
ℹ️
Access control is enforced by page template, set in Page Attributes → Template on each page. The SVE Club Access Guard MU-plugin reads the template and redirects ineligible visitors automatically — no shortcodes needed. See Access Tiers for the full template-to-tier mapping.
⚠️
The My Membership page uses the default (no template), which gates it to logged-in residents. This is intentional — non-members who are already logged in need to reach this page to pay dues for the first time. Guests are redirected to /login/.

Step 2 — Create Membership Types

WP Admin › Club Membership › Membership Types › Add New

At least one active membership type is required before any member can pay. You will add Stripe Price IDs to each type after completing Step 3.

  1. Go to Club Membership → Membership Types → Add New.
  2. Fill in the type details:
    • Name — displayed to members on the payment form (e.g. "Single Membership")
    • Key (Slug) — internal identifier, lowercase with underscores (e.g. single). Cannot be changed after saving.
    • Amount — dues price in dollars (e.g. 20.00)
    • Description (optional) — shown in small text under the type name on the form
    • Sort Order — integer, lower numbers appear first on the form
    • Active — checked by default; uncheck to hide from the payment form without deleting
  3. If this type supports couples membership (two people under one payment):
    • Check Allows Partner
    • Enter Partner Amount — the total price charged when linking a partner (e.g. 30.00 for two people)
  4. Leave Stripe Price ID fields blank for now — you will add these after creating products in Stripe (Step 3). Click Save.

Example configuration (adjust amounts and slugs to match your club's dues structure):

NameSlugAmountAllows PartnerPartner Amount
Single Membershipsingle$20.00No—
Couples Membershipcouple$20.00Yes$30.00
Complimentarycomplimentary$0.00No—
✅
A $0.00 membership type (e.g. Complimentary) bypasses Stripe entirely. When a member selects it and clicks Pay, membership is activated immediately with no payment. No Stripe Price ID is needed for zero-dollar types.

Step 3 — Stripe Setup

Dues payments use Stripe Connect. Your club connects its own Stripe account (or creates one during the connect flow) via a single "Connect with Stripe" button — there is no webhook to register and no API key to paste. The network runs one central, shared webhook endpoint for every club.

⚠️
Complete all setup steps in Stripe Test Mode first (the network admin controls test/live mode network-wide). After verifying end-to-end with a test card, coordinate with your network administrator to switch the network to Live mode.

Connect this club's Stripe account

  1. Go to Club Membership → Settings and find the Stripe Connection section at the top.
  2. Click Connect with Stripe. You'll be sent to Stripe to log in to your club's existing Stripe account, or create a new one.
  3. Approve the connection. You'll land back on the Settings page showing Connected as acct_… — this club can now accept online dues payments, and you can manage payouts and tax reporting any time from your own Stripe Dashboard (use the Manage on Stripe link).

Create products/prices in your connected Stripe account

The steps differ slightly between Annual Subscription and Seasonal billing modes — follow Part A or Part B depending on your chosen mode. Either way, create these inside your own Stripe account (reachable from the "Manage on Stripe" link) — not the platform's account.

Part A — Annual Subscription Mode

  1. In your Stripe Dashboard → Products → Add Product, create one product per membership type (e.g. "Club — Single Membership").
    Add a price: Recurring · Yearly. Enter the annual amount.
    Copy the price_… ID shown after saving.
  2. For any type that allows partners (couples), create a second product (e.g. "Club — Couples Membership") with the couples amount as a Recurring · Yearly price.
    Copy its price_… ID.

Part B — Seasonal Mode

  1. In your Stripe Dashboard → Products → Add Product, create one product per membership type.
    Add a price: One time (not recurring). Enter the seasonal amount.
    Copy the price_… ID.
  2. For couples types, create a second product at the couples amount as a one-time price. Copy its price_… ID.

Add Stripe Price IDs to Membership Types

  1. Go to Club Membership → Membership Types and click Edit on the first type.
  2. Paste the Price ID(s) you copied from Stripe into the matching field(s):
    • Subscription mode → Stripe Price ID — Subscription (Individual) and, if the type allows partners, Subscription (Partner)
    • Seasonal mode → Stripe Price ID — Seasonal (Individual) and, if applicable, Seasonal (Partner)
  3. Save. Repeat for each membership type.
ℹ️
You can fill in both the Subscription and Seasonal Price IDs on every type at the same time. The plugin uses whichever set matches the active billing mode, so you can switch modes later without re-entering Price IDs.
✅
A club that only accepts cash/check never needs to click "Connect with Stripe" at all — the rest of the plugin (membership types, directory, roles) works the same either way.

Step 4 — Plugin Settings

WP Admin › Club Membership › Settings
  1. Stripe Connection — already handled in Step 3 (Connect with Stripe / Disconnect). Nothing else to configure here.
  2. Page URLs — enter the full URLs of the pages created in Step 1:
    • Payment Success URL — the /my-membership/ page with ?cm_checkout=success appended (e.g. https://club.svehoa.com/my-membership/?cm_checkout=success)
    • Payment Cancel URL — where Stripe sends members who close the checkout page (e.g. https://club.svehoa.com/my-membership/?cm_checkout=cancelled)
    • Billing Portal Return URL — where Stripe sends members after closing the portal (e.g. https://club.svehoa.com/my-membership/). Subscription mode only.
  3. Treasurer Name and Email — shown in automatic renewal reminder emails as the contact for cash/check payment.
  4. Email From (optional) — override the network-wide SVE Mailer "from" name and email for emails sent by this club site.
  5. Login Page Help Message (optional) — brief text shown below the [cm_login_form]. Accepts <strong>, <em>, <a>, <br>. Useful for directing new residents to request an account.
  6. Click Save Settings.

Step 5 — Choose a Billing Mode

WP Admin › Club Membership › Settings › Billing Mode

The billing mode is a site-wide setting. You cannot mix modes — all members are on the same model. Choose based on your club's dues cycle.

Annual Subscription

Each member's expiry date advances by one year from their payment date. Stripe charges automatically each year. Best for clubs where members join at any time of year.

  • No year-end officer action needed for Stripe members
  • Cash/check members still renew manually each year
  • Members can manage or cancel their subscription via the Stripe Billing Portal

Seasonal

All memberships expire on the same fixed date each year (e.g. September 30). Online payment is a one-time charge per season, not a subscription. Best for clubs with a defined season.

  • Predictable dues collection — everyone renews at the same time
  • No Stripe subscriptions; members pay once per season
  • Early Renewal Window prevents short-changing members who pay just before season end

Configuring Seasonal Mode

If you chose Seasonal, also set:

  • Season End Date — the month and day on which all memberships expire (e.g. September 30). All new payments set the member's expiry to this date in the current or next year.
  • Early Renewal Window — number of days before season end within which a payment credits the member to next season instead of the current one. Example: set to 30 so a member paying on September 5 gets a full new season rather than just 25 days. Set to 0 to disable.

Step 6 — Site Navigation

The club site uses role-conditional navigation menus so members, guests, and officers each see an appropriate set of links. Set these up in Appearance → Menus (classic themes) or the Block Editor site navigation (block themes).

Recommended menus

MenuAssigned toKey items
Guest Menu Non-logged-in visitors and non-members Login, Club Home, (public pages)
Member Menu Active members (Club Member role) Member Home, Directory, Submit a Post, My Membership, Logout
Officer Menu Officers and Administrators All member items + WP Admin, Members List, Record Payment

Use a plugin such as Nav Menu Roles or the built-in conditional logic in your theme's menu builder to show each menu to the correct role. Alternatively, a single menu with conditionally-shown items via shortcodes in menu labels also works.

ℹ️
The [cm_login_form] shortcode's post-login redirect determines where each member type lands — you do not need a separate redirect plugin. Just ensure the target pages exist.

Step 7 — Verify & Go Live

Testing with Stripe Test Mode

  1. Confirm with your network administrator that the network is in Test mode (Network Admin → Stripe Connect — this is a network-wide setting, not per club).
  2. As a regular user (not admin), visit /my-membership/ and click Pay Annual Dues.
  3. On the Stripe Checkout page, use test card 4242 4242 4242 4242, any future expiry (e.g. 12/28), and any 3-digit CVC.
  4. After payment, confirm you are redirected back to /my-membership/ with a success message and Active status.
  5. Confirm the Dashboard shows the correct active member count.
  6. In your own Stripe Dashboard → Events, confirm a checkout.session.completed event was created for the connected account.
  7. Test the Member Directory — verify the test member appears.
  8. Test cash/check recording via Club Membership → Record Payment.
  9. Test the post subscription flow — publish a test post and confirm the notification email arrives.

Going Live

  1. Coordinate with your network administrator — switching to Live mode happens once, network-wide, in Network Admin → Stripe Connect (not per club).
  2. Create Live Stripe products in your connected account with Live prices and copy the Live price_… IDs.
  3. In Club Membership → Membership Types, paste the Live Price IDs into each type and save.
  4. Announce dues payment to members. Monitor your Stripe Dashboard → Events for the first real payments.
🚨
Clubs never handle a Stripe secret key directly — connection is via OAuth only. If you ever suspect your connected account has been compromised, click Disconnect in Settings and contact your network administrator.

Part 2 — Admin User Guide

Dashboard

WP Admin › Club Membership › Dashboard

Requires: Officer or Administrator role.

The Dashboard is the day-to-day status screen. Check it after dues collection drives or whenever you want a quick membership snapshot.

Stat cards

CardWhat it counts
ActiveUsers whose _cm_dues_status meta = active
Total UsersAll WordPress users on this subsite (all roles)
ExpiredUsers whose dues status = expired
CancelledUsers whose dues status = cancelled

Recent Payments

The last 10 payments across all methods (Stripe, cash, check). Columns: Date, Member, Method badge, Amount, Dues Year, Expires.

Configuration warnings

The Dashboard shows a warning banner if any of these are missing:

  • This club has not connected a Stripe account
  • No active membership type has a Stripe Price ID for the current billing mode

The warning includes a direct link to Settings. Cash and check payments continue to work even while Stripe is unconfigured.

Role-sync warning

If the Dashboard shows a warning such as "3 active members are missing their Club Member role", click Sync Roles Now. This restores the Club Member role for any member whose _cm_dues_status says active but whose WordPress role does not match — typically caused by a network admin removing and re-adding a user without the plugin loaded.

Members List

WP Admin › Club Membership › Members

Requires: Officer or Administrator role.

The Members page is the primary day-to-day tool for checking dues status, finding a specific member, and managing cash/check renewals.

Searching and filtering

  • Search box — searches display name and email address (partial match)
  • Status filter — All / Active / Expired / Cancelled / Never Paid

Results are paginated at 25 per page. Filters apply independently.

Member table columns

ColumnDescription
Name / EmailDisplay name (links to WP Admin user edit) and email address
RoleCurrent WordPress role — Club Member = active, Resident = not active
Dues StatusStatus meta badge
Membership TypeSlug of the member's current type (e.g. single)
Paid DateMost recent payment date
ExpiresExpiry date of current dues
MethodStripe / Cash / Check / Waived badge
ActionsQuick link to Record Payment for that member

CSV Export

Click the ⬇ Download CSV button at the top of the page to export all members regardless of current search/filter. The CSV includes a UTF-8 BOM for Excel compatibility and contains the same columns as the table above plus stripe_customer_id.

Adding a New Member

WP Admin › Club Membership › Add New Member

Requires: Officer or Administrator role.

Use this page to manually create a WordPress account for someone who is paying in person but does not yet have a club website account.

  1. Enter First Name, Last Name, and Email Address. A username is auto-generated from the name; edit it if needed.
  2. Click Create Member. The account is created with the Resident role and WordPress sends a welcome email with a password-set link.
  3. Immediately record their payment on the Record Payment page to upgrade their role to Club Member.
ℹ️
Creating an account here does not activate membership or charge any dues — the user is created as a Resident. Always follow up with a payment recording. The member cannot access the directory until payment is recorded.

Recording a Cash or Check Payment

WP Admin › Club Membership › Record Payment

Requires: Officer or Administrator role.

Use this page any time a member pays in person — cash, check, or waived (e.g. board member who does not pay dues). You can also reach this page from the Members list by clicking a member's Record link, which pre-fills the member search.

  1. Search for the member — type name or email in the search box and select from the autocomplete dropdown.
  2. Select membership type — the Amount field auto-fills based on the type's configured price.
  3. If recording a couples payment — search for the partner member in the second autocomplete. Both accounts will be activated together.
  4. Choose payment method — Cash or Check.
  5. Confirm the amount — auto-filled, but you can edit it (e.g. for a partial payment or discount).
  6. Enter the dues year — typically the current year.
  7. Set the expiry date:
    • Subscription mode — typically today + 1 year
    • Seasonal mode — the season end date (e.g. 2026-09-30); the plugin sets this automatically for online payments, but you must enter it manually for cash/check
  8. Add optional notes — check number, receipt reference, etc.
  9. Click Record Payment. The member (and partner, if applicable) is immediately set to Active and their role is upgraded to Club Member.
✅
After recording, a success notice appears and the member's full payment history is displayed on the right. The member can access the directory immediately.
ℹ️
All recorded payments are immutable audit-log entries in the wp_cm_payments table. You cannot edit or delete a payment record — if you enter wrong information, record a correcting note in the Notes field of a subsequent payment.

Post Subscribers

WP Admin › Club Membership › Post Subscribers

Requires: Officer or Administrator role.

This page lists all members currently subscribed to post notifications — the email sent whenever any member publishes a new post.

  • Subscriber count shown at the top (excludes globally suppressed users)
  • Officers can manually unsubscribe an individual member on request
  • Members are automatically subscribed when their membership is activated and automatically unsubscribed when dues lapse
  • Members can also manage their own subscription via [cm_email_prefs] on the Email Preferences page
ℹ️
If post broadcasts are in test mode (Settings → Post Broadcast), new member posts are emailed only to the test addresses listed — not to all subscribers. Check the Post Broadcast section in Settings before announcing post notifications to members.

Importing Members

WP Admin › Club Membership › Import Members

Requires: Administrator role only.

Use the Import page to bulk-update membership data from a CSV — for example, when migrating from a spreadsheet at the start of a new season.

⚠️
Import updates existing WordPress user accounts only — it does not create new users. Each row is matched by email address. Rows with an email that does not match an existing account are skipped and listed in the error summary.

Required CSV format

Column headerRequiredAllowed values / format
emailYesMust match an existing WP user
display_nameYesMember's full name
dues_statusYesactive · expired · cancelled · none
paid_dateYesYYYY-MM-DD
expires_dateYesYYYY-MM-DD
payment_methodYescash · check · stripe
membership_typeNoAny valid type slug (defaults to single)

Members imported as active are immediately assigned the Club Member role and subscribed to post notifications — identical to a manually recorded payment.

Procedure

  1. Prepare your CSV file with the columns above. The first row must be the header row.
  2. Go to Import Members, click Choose File, and select your CSV.
  3. Click Import. A results summary shows how many rows were imported, how many failed, and why each failure occurred.
  4. Review the Members list to confirm the import looks correct.

Exporting Members

Requires: Officer or Administrator role.

From the admin Members page

Click the ⬇ Download CSV button at the top of Club Membership → Members. Exports all members regardless of the current search/filter.

From the front-end Member Directory

Officers see a Download CSV button at the top of the [cm_member_directory] page. Click it to export all active members with dues details.

Settings Reference

WP Admin › Club Membership › Settings

Requires: Administrator role only.

SettingDescription
Stripe ConnectionConnect with Stripe (unconnected) or connected account ID + Manage on Stripe / Disconnect (connected). Test vs. Live mode and the webhook endpoint are configured once, network-wide, by the network administrator — not here.
Billing ModeAnnual Subscription or Seasonal. Site-wide. See Billing Mode Reference.
Season End Date(Seasonal only) Month + day on which all memberships expire each year
Early Renewal Window(Seasonal only) Days before season end within which paying credits next season. 0 = disabled.
Payment Success URLWhere Stripe redirects after a successful payment — the /my-membership/ page URL with ?cm_checkout=success
Payment Cancel URLWhere Stripe redirects if the member closes checkout without paying
Billing Portal Return URL(Subscription only) Where Stripe sends members after closing the billing portal
Treasurer NameShown in renewal reminder emails as the cash/check contact
Treasurer EmailEmail address for cash/check payment enquiries; also used as the contact in [cm_email_prefs]
From NameOverride SVE Mailer default "from" name for this club's emails
From EmailOverride SVE Mailer default "from" email for this club's emails
Post Broadcast Test ModeWhen checked, new post broadcasts go only to the listed test addresses instead of all subscribers
Test Email AddressesComma-separated — only used when Post Broadcast test mode is on
Login Help MessageOptional HTML displayed below [cm_login_form]

Managing Membership Types

WP Admin › Club Membership › Membership Types

Requires: Administrator role only.

Membership types define the pricing tiers available to members on the payment form.

Field reference

FieldDescription
NameDisplay name on the payment form (e.g. "Single Membership")
Key (Slug)Internal identifier — cannot be changed after creation. Use lowercase with underscores.
AmountDues price in dollars shown on the payment form
DescriptionOptional subtext shown under the type name on the form
Sort OrderLower numbers appear first in the type selector
Stripe Price ID — Subscription (Individual)price_… recurring yearly ID — used in Annual Subscription mode for solo payment
Stripe Price ID — Seasonal (Individual)price_… one-time ID — used in Seasonal mode for solo payment
Allows PartnerEnables partner-linking UI in the checkout form for this type
Partner AmountTotal charged when paying for two people; shown alongside the individual price
Stripe Price ID — Subscription (Partner)Recurring yearly Price ID for the coupled rate
Stripe Price ID — Seasonal (Partner)One-time Price ID for the coupled seasonal rate
ActiveInactive types are hidden from the payment form but preserved in payment history
⚠️
You cannot delete a membership type that is currently assigned to any member. Deactivate it instead — it will be hidden from the payment form but existing members retain their type label in their payment history.

Registration Flow — Online Payment (Stripe)

This flow shows every step from the moment a member clicks Pay Annual Dues to the moment their membership activates.

Member visits [cm_dues_status] page
          │
          ▼
Selects membership type (and optional partner)
  ┌─────────────────────────────────┐
  │  Couples option chosen?         │
  │  ├─ "My partner has an account" │──▶ Enter partner email
  │  ├─ "Create partner account"    │──▶ Enter partner name → WP account created
  │  └─ (none — individual)         │
  └─────────────────────────────────┘
          │
          ▼
Clicks "Pay Annual Dues" → POST to admin-post.php (cm_create_checkout)
          │
          ├─── Is price $0? ──Yes──▶ Activate immediately (no Stripe) ──▶ Redirect to success URL
          │
          ▼ (price > $0)
CM_Stripe_API::create_checkout_session()
  • sve_stripe_api_request() adds Stripe-Account header for this club's connected account
  • Stores user_id in Stripe session metadata
  • Stores partner_user_id in metadata (if coupled)
          │
          ▼
Redirect to Stripe Checkout (on the club's own connected Stripe account)
  • Member enters payment details on stripe.com
  • Stripe processes payment
          │
    ┌─────┴──────────────────────────┐
    │                                │
    ▼ (payment succeeded)            ▼ (member closes checkout)
Stripe redirects to                  Stripe redirects to
  Payment Success URL                  Payment Cancel URL
  (?cm_checkout=success                (?cm_checkout=cancelled)
   &session_id=cs_…)                           │
          │                                     ▼
          ▼                          Shortcode shows "Payment cancelled"
[cm_dues_status] shortcode                     notice
  maybe_verify_checkout_session()
  • If webhook already fired → skip
  • If not yet fired → retrieve session
    from Stripe API and activate now
          │
          ▼
(Simultaneously / shortly after)
Stripe fires a Connect webhook event (account = this club's connected account) →
  POST {main site}/wp-json/sve-stripe-connect/v1/webhook  ← ONE endpoint, shared by every club
  SVE_Stripe_Connect_Webhook_Handler::handle()
    • Verify HMAC-SHA256 signature
    • Resolve blog_id from the event's connected account
    • do_action('sve_stripe_webhook_checkout_session_completed', $session, $blog_id)
          │
          ▼
CM_Webhook_Handler::on_checkout_completed()
  • switch_to_blog($blog_id) — scopes everything below to the right club
  • checkout.session.completed event
    → CM_Payment_Manager::record_payment()
    → CM_Member_Manager::activate_membership()
       • Sets _cm_dues_status = 'active'
       • Sets role = club_member
       • Fires cm_member_activated action
         → CM_Member_Manager::subscribe_newsletter()
  • If coupled → CM_Couples_Manager::activate_couple()
  • restore_current_blog()
          │
          ▼
Member sees [cm_dues_status] with Active badge ✅
    
ℹ️
The fallback verification on the success redirect prevents the member seeing an "unpaid" status even if the Stripe webhook is delayed. The webhook is the authoritative path; the fallback is a safety net only.

Registration Flow — Cash or Check Payment

This flow shows how an officer records an in-person payment.

Officer goes to Club Membership → Record Payment
  (or clicks "Record" from the Members list for a pre-selected member)
          │
          ▼
Search for member by name or email (AJAX autocomplete)
  ↳ Select member from dropdown
          │
          ▼
Select membership type → Amount auto-fills
  ├─ If couples type → search for partner member
  ├─ Choose Cash or Check
  ├─ Confirm amount (editable)
  ├─ Enter dues year and expiry date
  └─ Add optional notes (check #, receipt, etc.)
          │
          ▼
Click "Record Payment"
  → POST to admin-post.php (cm_record_payment)
  → CM_Admin::handle_record_payment()
     • check_admin_referer('cm_record_payment')
     • officer or administrator role check
     • CM_Payment_Manager::record_payment()
       Inserts row into wp_cm_payments
     • CM_Member_Manager::activate_membership()
       • Sets _cm_dues_status = 'active'
       • Sets _cm_dues_paid_date
       • Sets _cm_dues_expires_date
       • Sets _cm_payment_method = 'cash' or 'check'
       • Sets WP role = club_member
       • Fires cm_member_activated action
         → subscribe_newsletter()
     • If coupled → CM_Couples_Manager::activate_couple()
       activates both accounts together
          │
          ▼
Redirect to Record Payment page with success notice ✅
Payment history for member shown in right column
    

Dues Expiry & Renewal Flow

This flow shows how membership expires and how members renew.

Daily WP-Cron job: cm_daily_dues_check
  → CM_Member_Manager::run_dues_expiry_check()
     Finds members where:
       _cm_dues_status = 'active'
       AND _cm_dues_expires_date < today
          │
          ▼
For each expiring member:
  ├─ Payment method = 'stripe'?
  │    └─ Query Stripe API for subscription status
  │         • If subscription still active → skip (renew date drift)
  │         • If cancelled/past_due/unpaid → proceed to deactivate
  │
  └─ Payment method = 'cash' or 'check'?
       └─ Proceed directly to deactivate
          │
          ▼
CM_Member_Manager::deactivate_membership(user_id, 'expired')
  • Sets _cm_dues_status = 'expired'
  • Sets WP role = resident
  • Fires cm_member_deactivated action
    → CM_Member_Manager::unsubscribe_newsletter()
          │
          ▼
Member next visit → [cm_dues_status] shows Expired badge
                  → "Pay Annual Dues" button appears
          │
          ▼
Member renews (online or cash/check)
  └─ Same flow as initial registration
     except renewal reminder emails were sent:
       • 30 days before expiry
       • 7 days before expiry
       • On expiry date
     Each email shows both Stripe and cash/check options

─────────────────────────────────────────────

Stripe Subscription Auto-renewal (subscription mode only):
  Stripe charges member's card on anniversary date
  → Stripe fires customer.subscription.updated webhook
  → CM_Webhook_Handler processes event
  → CM_Member_Manager::activate_membership()
     extends _cm_dues_expires_date by one year
  (No action required from member or officer)
    
ℹ️
The daily cron is a safety net for missed webhooks. Stripe webhooks are the primary signal for subscription renewals. The cron verifies the Stripe subscription API before downgrading a Stripe member — preventing false expirations if a webhook retry is delayed.

User Access Tiers

The club site uses a four-tier access model. Each tier determines which pages are accessible and what navigation appears. Tier enforcement is handled by the SVE Club Access Guard MU-plugin — it reads the page template assigned to each page and redirects ineligible visitors automatically. No shortcodes are needed.

Page template → tier mapping

Page TemplateRequired tierWho can access
Club PublicGuest (public)Everyone, including logged-out visitors
Club LoginGuest (public)Everyone; redirects already-logged-in users away
(default — no template)ResidentAny logged-in user
MemberMemberActive dues-paid members, Officers, Admins
OfficerOfficerOfficers and Admins only

Tier 1 — Guest (Not Logged In) Anonymous

  • Can access pages using the Club Public or Club Login template
  • Redirected to /login/ if they attempt to access any resident-, member-, or officer-gated page
  • Sees only public content, the login page, and join/renew information

Tier 2 — Logged-In Resident Resident · no dues

  • Has a WordPress account (Resident role) but has never paid dues, or dues have lapsed
  • Can access pages with no template assigned (default/resident gate), including /my-membership/
  • Redirected to the club home page if they attempt to access a Member- or Officer-templated page
  • Cannot access the directory, submit posts, or view member-only content

Tier 3 — Active Member Club Member · dues paid

  • Can access all public, resident, and member-templated pages
  • Full access: directory, post submission, email preferences, member dashboard
  • Redirected to the club home page if they attempt to access an Officer-templated page

Tier 4 — Officer / Admin Officer or Administrator

  • Unrestricted access to all pages regardless of template or dues status
  • Never auto-downgraded by the plugin

Billing Mode Reference

Annual SubscriptionSeasonal
Stripe product typeRecurring — YearlyOne-time payment
Expiry date set toPayment date + 1 yearConfigured season-end date
Auto-renewalYes — Stripe charges annuallyNo — member must pay each season
Webhook events requiredcheckout.session.completed
customer.subscription.updated
customer.subscription.deleted
checkout.session.completed only
Manage Subscription buttonYes — opens Stripe Billing PortalNo (no subscription to manage)
Cron Stripe API checkYes — verifies subscription before downgradeNo — expiry date is authoritative
Stripe Price ID fields usedSubscription (Individual / Partner)Seasonal (Individual / Partner)
Best forYear-round clubs with rolling renewalsClubs with a defined season
⚠️
Switching billing modes mid-season requires manual care. Existing Stripe subscription members will continue auto-renewing via Stripe even after you switch to seasonal mode. Cancel those subscriptions in Stripe (or let them lapse) before switching, then record cash/check payments for the new season.

Troubleshooting

Member paid online but status still shows Expired / Not Paid

  1. Ask the member to wait 30 seconds and hard-refresh the page (Ctrl+Shift+R / Cmd+Shift+R). The fallback checkout verification should have activated their membership immediately on the success redirect.
  2. In your Stripe Dashboard → Developers → Events, check whether checkout.session.completed appears for this session. The event is delivered to the network's single shared webhook endpoint — you cannot see its delivery status from your own account, so ask your network administrator to check Network Admin → Stripe Connect and the platform's Stripe Dashboard → Webhooks → Events for a matching HTTP 200.
  3. Confirm this club still shows Connected in Club Membership → Settings — a disconnected account cannot receive events.
  4. As a last resort, use Club Membership → Record Payment to manually activate the member, then refund in Stripe if needed.

Dashboard shows "Stripe not fully configured" warning

Two conditions must both be met:

  1. This club must be connected — Club Membership → Settings shows "Connect with Stripe" instead of a connected account ID
  2. At least one active membership type must have a Stripe Price ID for the active billing mode (subscription or seasonal)

Check each in Club Membership → Settings and Club Membership → Membership Types.

Dashboard shows "active members missing Club Member role"

This indicates role-data desync, usually caused by a network admin removing and re-adding a user. Click Sync Roles Now to repair all affected accounts in one action.

A member's dues show Active but they cannot see the directory

  1. Confirm the directory page has the Member page template assigned (not a stricter Officer template).
  2. Confirm the member's WP role is Club Member (not Resident). Go to Users → All Users and check their role column. If they show Resident but dues_status = active, use Sync Roles Now on the Dashboard.

"Connect with Stripe" fails or redirects with an error

This is a network-wide configuration issue, not something fixable from this club's Settings page. Ask your network administrator to confirm, in Network Admin → Stripe Connect: the platform secret key is saved for the active mode, the Connect OAuth Client ID (ca_…) is correct, and Standard accounts are enabled in the platform's Stripe Dashboard → Settings → Connect.

Renewal reminder emails not sending

  1. Confirm WP-Cron is working — the daily dues check runs on cm_daily_dues_check. Check with a cron management plugin or by temporarily lowering a member's expiry date.
  2. Confirm the SVE Mailer MU-plugin is active and the Mailgun API key and domain are configured in Network Admin → SVE Mailer → Settings.
  3. Check that the member is not globally suppressed (Network Admin → SVE Mailer → Suppression List).

Post notifications not being sent

  1. Confirm Post Broadcast test mode is OFF in Club Membership → Settings → Post Broadcast.
  2. Confirm at least one member is subscribed — check Club Membership → Post Subscribers.
  3. Confirm the SVE Mailer MU-plugin is configured and Mailgun is reachable.
  4. Check the WordPress error log for any exceptions from CM_Post_Broadcaster.

Stripe subscription cancelled but member still shows Active

The customer.subscription.deleted webhook may not have been delivered. Check Stripe Dashboard → Webhooks → your endpoint for failed attempts and resend. The nightly cron will also catch this at midnight if the webhook never arrives.