Get the plugin
WP MCP/Integrations/E-commerce

E-commerce integration

WooCommerce Memberships MCP

WP MCP Pro works WooCommerce Memberships in-process, so every response is a curated view and every write goes through the calls the plugin's own screens make. Reads come straight from Memberships' storage: the plan posts, the rules option and each user membership. grant creates a membership through wc_memberships_create_user_membership() and can send the plugin's activation email, so it needs confirm:true. pause, resume and cancel go through the membership's own pause_membership(), activate_membership() and cancel_membership(), so its notes, emails and scheduled events run; resume can email, so it needs confirm:true, and cancel is destructive and off until a site opts in. extend moves the end date through set_end_date(), which reschedules the plugin's expiry and reminder emails. Every write is snapshotted, so rollback-operation undoes it and a grant's rollback deletes the membership.

woo-opswoo-readwoo-write

In practice

How WooCommerce Memberships work goes with an agent.

WooCommerce Memberships spreads its data across three places: plans are their own posts, the rules that say what a plan unlocks (content, products, discounts) sit in one rules option, and each person's membership is a user membership record with a status, start and end, paused and cancelled dates and the order that granted it. A support question such as why a member cannot see a page needs all three. WP MCP reads each directly, with member counts by status on every plan, so an agent can explain access before it changes anything.

What does the Gold plan unlock, and how many members does it have in each status?

Runs memberships.plans through woo-read, which returns the access method, length and dates, product ids, member counts by status and the access rules for content, products and discounts. Nothing is written.

Which memberships does user 312 hold, in any status?

Runs memberships.user with user_id 312. It lists every membership the user holds, including ended ones. Reading members needs the customers capability, since the rows carry names and emails.

Pause membership 7781 while the billing dispute is open.

Runs memberships.pause, which goes through the plugin's own pause_membership() so its notes and scheduled events run. The membership is snapshotted first; Memberships' note on it stays as history after an undo.

Extend membership 7781 to 31 December 2026.

Runs memberships.extend with end_date in UTC. It goes through set_end_date(), which reschedules the expiry and reminder emails, and the previous end date is restored by rollback-operation.

What your AI can do

Real WooCommerce Memberships operations, every write reversible.

  • List plans and read user memberships as a curated view
  • Grant a membership through the plugin's own create call
  • Pause, resume or cancel a membership so its notes, emails and schedules run
  • Extend a membership's end date, rescheduling expiry and reminders
  • Roll back any write, deleting a granted membership on undo

Example prompts

Example WooCommerce Memberships prompts.

Which membership plans do we run, and who is active on the Gold plan?

Grant user 312 the Gold membership.

Extend membership 7781 by one month.

Under the hood

The WooCommerce Memberships calls, under the hood.

wpmcp, woocommerce-memberships

woo-read({ op: "memberships.list-plans" }), plans and rules, curated

woo-write({ op: "memberships.extend", params: { id: 7781, end_date: "2026-12-31" } }), snapshotted; reschedules reminders

Safety and access

What can be undone on WooCommerce Memberships, and what costs what.

Recoverable on WooCommerce Memberships

  • Every membership write runs under a snapshot of the user membership, so rollback-operation restores it.
  • Undoing memberships.grant deletes the membership it created.
  • Memberships adds a note to the membership on each write, and a rollback leaves that note as history.
  • An email the plugin already sent cannot be recalled.

WooCommerce Memberships limits and opt-ins

  • memberships.cancel is destructive: it is off until a site enables it with the wpmcp_woo_op_enabled filter, needs confirm:true, and answers recoverable:false. Access ends now and a tied subscription may react.
  • grant and resume can email the member, so both need confirm:true. grant is refused when the user already holds that plan.
  • Only active, complimentary and free_trial memberships can be paused. Cancel and extend work on open ones, including delayed, pending and paused.
  • No op edits a plan or its rules; plans are read only.

Free or Pro: The memberships.* ops are Pro, in the extended WooCommerce toolset behind woo-read, woo-write and woo-ops; the core WooCommerce tools stay in the free plugin. Pause, extend, grant and resume run on a licensed site without any switch, with confirm:true on the two that can email. Cancel is the opt-in. Without WooCommerce Memberships active the ops answer plugin_missing or plugin_inactive.

Part of WP MCP Pro

The WooCommerce Memberships integration is part of WP MCP Pro.

One Pro licence unlocks the WooCommerce Memberships tools and every other Pro integration on this site: Elementor deep editing, the other page builders, the forms adapter pack and more, 133 Pro tools in all. The free plugin still covers the rest of WordPress and the full snapshot and undo engine, so you can try the safety model before you buy.

Frequently asked

WooCommerce Memberships MCP: questions, answered.

Does granting or resuming a membership email the member?

It can. grant can send the plugin's activation email and resume can email, so both need confirm:true. Pause and extend run through the plugin's own methods so its notes and scheduled events stay correct.

On WooCommerce Memberships, is a cancellation reversible?

Rollback restores the membership, but the plugin's cancellation notes and emails have already run, so cancel reports recoverable:false and is off until a site opts in.

Can the WooCommerce Memberships integration change a plan or its access rules?

No. Plans and rules are read only: memberships.plans shows them, including the content, product and discount rules, but no op edits them. The writes act on one person's membership: grant, pause, resume, extend and cancel. Changing what a plan unlocks stays in the Memberships screens.

Which memberships can be paused or extended?

Pause works on active, complimentary and free_trial memberships; access stops until a resume. Extend and cancel work on any open membership, which includes delayed, pending and paused as well. Passing end_date as null on extend removes the end date, and the plugin's expiry and reminders are rescheduled.

Does extending a membership email the member?

Not by itself, and it needs no confirm:true. It moves the end date through the plugin's own set_end_date(), which reschedules the expiry and reminder emails, so the member will get those later, on the new dates. Grant and resume are the two that can send an email at once.

In WooCommerce Memberships, how do I list the members of one plan?

memberships.members lists user memberships newest first and filters by plan_id and by status (or a list of statuses), with page and per_page up to 50. Each row has the status, plan, user and email, start, end, paused and cancelled dates in UTC, and the order.

Point your AI at WooCommerce Memberships.