wcm-data-model-subscriptions-link

Installation
SKILL.md

WooCommerce Memberships: data model and Subscriptions link

Use this when an integration needs exact storage names. Prefer Memberships public APIs and objects for writes; use these keys for audits, migrations, import/export mapping, and low-level debugging.

Core storage

Entity Storage Name/key Notes
Membership plan CPT wc_membership_plan Registered by WC_Memberships_Post_Types. Not public, UI under WooCommerce when possible.
User membership CPT wc_user_membership One post per user-plan membership. Not public.
Plan relation WP post field wc_user_membership.post_parent This is the plan ID. Do not invent _member_plan_id; the installed plugin uses post_parent.
Member relation WP post field wc_user_membership.post_author This is the member/user ID.
Subscription WC order type shop_subscription From WooCommerce Subscriptions; use wcs_get_subscription().
Membership rules Option wc_memberships_rules Stores serialized rule arrays for all plans. Rules are not CPTs.
Profile field definitions Option wc_memberships_profile_fields Definition data keyed by profile field slug.
Profile field values User meta _wc_memberships_profile_field_{slug} Stored by Profile_Field\User_Meta.
Order grant marker WC order meta _wc_memberships_access_granted Array keyed by user membership ID, with already_granted, granting_order_status, and related details.

Membership statuses

Installs
2
GitHub Stars
22
First Seen
Jun 19, 2026
wcm-data-model-subscriptions-link — lonsdale201/wp-agent-skills