Paid Memberships Pro
These abilities register when Paid Memberships Pro is detected on the site and a Pro licence is active. If either is missing the module stays absent rather than failing at call time.
At a glance
Paid Memberships Pro registers 5 abilities: 3 that only read, 0 that write, and 2 marked destructive. That split is the practical answer to how much of this module can run unattended. Reads cost nothing and are safe to repeat, so discovery is the part to be generous with; the writes are where review belongs, and the destructive calls stop for an explicit confirmation every single time regardless of which profile is active.
What this module is for
Inspect Paid Memberships Pro levels and a user's current memberships, then assign or cancel site access through explicit confirmation-gated abilities.
Before you rely on it: Assignment grants an administrative site entitlement; it does not run checkout or collect payment. Cancellation changes site access only and does not claim to cancel a remote gateway subscription or issue a refund.
Typical workflows
- Review available levels before granting access
- Inspect a user's memberships before changing an entitlement
- Cancel a site membership while reporting the separate gateway boundary
The Paid Memberships Pro integration page covers the same module from the workflow side, with the capability map and the questions worth asking before a first write.
Availability on your site
The Paid Memberships Pro module needs three things at once: WPPilot Free as the MCP foundation, an active Pro licence, and the companion plugin detected on the site. Miss any one and the module does not register, which is deliberate: an ability that appears in the tool list but fails at call time is worse than an ability that was never offered. What the connected agent can actually call is then narrowed twice more: by the safety profile active on the site, and by the WordPress capabilities of the user behind the credential. A read that succeeds for an administrator can be absent entirely for an editor.
Every write these abilities perform is recorded in the change ledger, and destructive calls can be routed through the approval queue so a person signs off before anything is applied. A successful tool result means the operation returned, not that the front end, the cache, and every dependent template are correct: that still needs a look.
Reads
Available in every safety profile, including Read Only. Inspection costs nothing and is not rate limited.
| Ability | What it does |
|---|---|
wppilot/paid-memberships-pro-check-setupCheck Paid Memberships Pro Setup | Reports the PMPro version, membership-level count, gateway name without credentials, multiple-membership mode, and administration capabilities. |
wppilot/paid-memberships-pro-get-user-membershipsGet User Memberships | Reads a WordPress user’s PMPro memberships without returning email, billing address, payment tokens, order codes, or gateway data. |
wppilot/paid-memberships-pro-list-levelsList Membership Levels | Lists PMPro membership levels with signup visibility, initial payment, recurring billing, trial, and expiration configuration. No gateway credentials are exposed. |
Destructive
Marked destructive in the source, so each call needs an explicit confirmation flag, every time.
| Ability | What it does |
|---|---|
wppilot/paid-memberships-pro-assign-user-levelAssign User Membership Level | Administratively grants a PMPro level to an existing user through pmpro_changeMembershipLevel(). It does not create a checkout, charge a gateway, or verify payment, so explicit confirmation is mandatory. |
wppilot/paid-memberships-pro-cancel-user-levelCancel User Membership Level | Cancels one PMPro membership level for a user through pmpro_cancelMembershipLevel(). This changes access and may trigger PMPro hooks; explicit confirmation is mandatory. |