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.
| Role | Dues state | Access |
|---|---|---|
| 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 |
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.
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
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).
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
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
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)
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/
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)
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 title | Recommended slug | Shortcode | Page 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) |
/login/.Step 2 — Create Membership Types
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.
-
Go to Club Membership → Membership Types → Add New.
-
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
-
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.00for two people)
-
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):
| Name | Slug | Amount | Allows Partner | Partner Amount |
|---|---|---|---|---|
| Single Membership | single | $20.00 | No | — |
| Couples Membership | couple | $20.00 | Yes | $30.00 |
| Complimentary | complimentary | $0.00 | No | — |
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.
Connect this club's Stripe account
- Go to Club Membership → Settings and find the Stripe Connection section at the top.
- 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.
- 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
-
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 theprice_…ID shown after saving. -
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 itsprice_…ID.
Part B — Seasonal Mode
-
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 theprice_…ID. -
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
- Go to Club Membership → Membership Types and click Edit on the first type.
-
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)
- Save. Repeat for each membership type.
Step 4 — Plugin Settings
-
Stripe Connection — already handled in Step 3 (Connect with Stripe / Disconnect). Nothing else to configure here.
-
Page URLs — enter the full URLs of the pages created in Step 1:
- Payment Success URL — the
/my-membership/page with?cm_checkout=successappended (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.
- Payment Success URL — the
-
Treasurer Name and Email — shown in automatic renewal reminder emails as the contact for cash/check payment.
-
Email From (optional) — override the network-wide SVE Mailer "from" name and email for emails sent by this club site.
-
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. - Click Save Settings.
Step 5 — Choose a 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
30so a member paying on September 5 gets a full new season rather than just 25 days. Set to0to disable.
Step 7 — Verify & Go Live
Testing with Stripe Test Mode
- 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).
- As a regular user (not admin), visit
/my-membership/and click Pay Annual Dues. - On the Stripe Checkout page, use test card
4242 4242 4242 4242, any future expiry (e.g.12/28), and any 3-digit CVC. - After payment, confirm you are redirected back to
/my-membership/with a success message and Active status. - Confirm the Dashboard shows the correct active member count.
- In your own Stripe Dashboard → Events, confirm a
checkout.session.completedevent was created for the connected account. - Test the Member Directory — verify the test member appears.
- Test cash/check recording via Club Membership → Record Payment.
- Test the post subscription flow — publish a test post and confirm the notification email arrives.
Going Live
- Coordinate with your network administrator — switching to Live mode happens once, network-wide, in Network Admin → Stripe Connect (not per club).
- Create Live Stripe products in your connected account with Live prices and copy the Live
price_…IDs. - In Club Membership → Membership Types, paste the Live Price IDs into each type and save.
- Announce dues payment to members. Monitor your Stripe Dashboard → Events for the first real payments.
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
| Card | What it counts |
|---|---|
| Active | Users whose _cm_dues_status meta = active |
| Total Users | All WordPress users on this subsite (all roles) |
| Expired | Users whose dues status = expired |
| Cancelled | Users 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
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
| Column | Description |
|---|---|
| Name / Email | Display name (links to WP Admin user edit) and email address |
| Role | Current WordPress role — Club Member = active, Resident = not active |
| Dues Status | Status meta badge |
| Membership Type | Slug of the member's current type (e.g. single) |
| Paid Date | Most recent payment date |
| Expires | Expiry date of current dues |
| Method | Stripe / Cash / Check / Waived badge |
| Actions | Quick 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
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.
- Enter First Name, Last Name, and Email Address. A username is auto-generated from the name; edit it if needed.
- Click Create Member. The account is created with the Resident role and WordPress sends a welcome email with a password-set link.
- Immediately record their payment on the Record Payment page to upgrade their role to Club Member.
Recording a Cash or Check 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.
- Search for the member — type name or email in the search box and select from the autocomplete dropdown.
- Select membership type — the Amount field auto-fills based on the type's configured price.
-
If recording a couples payment — search for the partner member in the second autocomplete. Both accounts will be activated together.
- Choose payment method — Cash or Check.
- Confirm the amount — auto-filled, but you can edit it (e.g. for a partial payment or discount).
- Enter the dues year — typically the current year.
-
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
- Add optional notes — check number, receipt reference, etc.
- Click Record Payment. The member (and partner, if applicable) is immediately set to Active and their role is upgraded to Club Member.
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
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
Importing 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.
Required CSV format
| Column header | Required | Allowed values / format |
|---|---|---|
email | Yes | Must match an existing WP user |
display_name | Yes | Member's full name |
dues_status | Yes | active · expired · cancelled · none |
paid_date | Yes | YYYY-MM-DD |
expires_date | Yes | YYYY-MM-DD |
payment_method | Yes | cash · check · stripe |
membership_type | No | Any 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
- Prepare your CSV file with the columns above. The first row must be the header row.
- Go to Import Members, click Choose File, and select your CSV.
- Click Import. A results summary shows how many rows were imported, how many failed, and why each failure occurred.
- 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
Requires: Administrator role only.
| Setting | Description |
|---|---|
| Stripe Connection | Connect 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 Mode | Annual 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 URL | Where Stripe redirects after a successful payment — the /my-membership/ page URL with ?cm_checkout=success |
| Payment Cancel URL | Where 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 Name | Shown in renewal reminder emails as the cash/check contact |
| Treasurer Email | Email address for cash/check payment enquiries; also used as the contact in [cm_email_prefs] |
| From Name | Override SVE Mailer default "from" name for this club's emails |
| From Email | Override SVE Mailer default "from" email for this club's emails |
| Post Broadcast Test Mode | When checked, new post broadcasts go only to the listed test addresses instead of all subscribers |
| Test Email Addresses | Comma-separated — only used when Post Broadcast test mode is on |
| Login Help Message | Optional HTML displayed below [cm_login_form] |
Managing Membership Types
Requires: Administrator role only.
Membership types define the pricing tiers available to members on the payment form.
Field reference
| Field | Description |
|---|---|
| Name | Display name on the payment form (e.g. "Single Membership") |
| Key (Slug) | Internal identifier — cannot be changed after creation. Use lowercase with underscores. |
| Amount | Dues price in dollars shown on the payment form |
| Description | Optional subtext shown under the type name on the form |
| Sort Order | Lower 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 Partner | Enables partner-linking UI in the checkout form for this type |
| Partner Amount | Total 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 |
| Active | Inactive types are hidden from the payment form but preserved in 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 ✅
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)
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 Template | Required tier | Who can access |
|---|---|---|
Club Public | Guest (public) | Everyone, including logged-out visitors |
Club Login | Guest (public) | Everyone; redirects already-logged-in users away |
| (default — no template) | Resident | Any logged-in user |
Member | Member | Active dues-paid members, Officers, Admins |
Officer | Officer | Officers and Admins only |
Tier 1 — Guest (Not Logged In) Anonymous
- Can access pages using the
Club PublicorClub Logintemplate - 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 Subscription | Seasonal | |
|---|---|---|
| Stripe product type | Recurring — Yearly | One-time payment |
| Expiry date set to | Payment date + 1 year | Configured season-end date |
| Auto-renewal | Yes — Stripe charges annually | No — member must pay each season |
| Webhook events required | checkout.session.completedcustomer.subscription.updatedcustomer.subscription.deleted | checkout.session.completed only |
| Manage Subscription button | Yes — opens Stripe Billing Portal | No (no subscription to manage) |
| Cron Stripe API check | Yes — verifies subscription before downgrade | No — expiry date is authoritative |
| Stripe Price ID fields used | Subscription (Individual / Partner) | Seasonal (Individual / Partner) |
| Best for | Year-round clubs with rolling renewals | Clubs with a defined season |
Troubleshooting
Member paid online but status still shows Expired / Not Paid
- 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.
- In your Stripe Dashboard → Developers → Events, check whether
checkout.session.completedappears 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. - Confirm this club still shows Connected in Club Membership → Settings — a disconnected account cannot receive events.
- 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:
- This club must be connected — Club Membership → Settings shows "Connect with Stripe" instead of a connected account ID
- 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
- Confirm the directory page has the
Memberpage template assigned (not a stricterOfficertemplate). - 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
- 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. - Confirm the SVE Mailer MU-plugin is active and the Mailgun API key and domain are configured in Network Admin → SVE Mailer → Settings.
- Check that the member is not globally suppressed (Network Admin → SVE Mailer → Suppression List).
Post notifications not being sent
- Confirm Post Broadcast test mode is OFF in Club Membership → Settings → Post Broadcast.
- Confirm at least one member is subscribed — check Club Membership → Post Subscribers.
- Confirm the SVE Mailer MU-plugin is configured and Mailgun is reachable.
- 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.