You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`membership_plan.created` | Triggered when a membership plan has been created.
23
+
`membership_plan.updated` | Triggered when a membership plan has been updated (with one of its properties modified or just saved without data change).
24
+
`membership_plan.deleted` | Triggered when a membership plan has been moved to the trash (not permanently deleted, but assumed so unless restored).
25
+
`membership_plan.restored` | Triggered when a membership plan is moved back from the trash (not necessarily as published, could be in draft status or other status).
Welcome to the [WooCommerce Memberships](https://woocommerce.com/products/woocommerce-memberships/) REST API documentation!
21
22
22
-
Memberships extends [WooCommerce](https://woocommerce.com/) and builds upon the [WordPress REST API](http://v2.wp-api.org/) to handle user memberships and memberships plans data through robust REST API endpoints.
23
+
Since version 1.11.0, Memberships extends [WooCommerce](https://woocommerce.com/) and builds upon the [WordPress REST API](http://v2.wp-api.org/) to handle user memberships and memberships plans data through robust REST API endpoints.
23
24
24
25
Memberships currently supports v2 of the WooCommerce REST API extension for WordPress, therefore all its endpoints will be added to the `/wc/v2/` route.
25
26
@@ -64,7 +65,7 @@ Property | Type | Description
64
65
`plan_id` | <code>int</code> | The unique identifier (integer) of the membership plan the membership is for.
65
66
`status` | <code>string</code> | The current status (string) of the user membership.
66
67
`order_id` | <code>int|null</code> | The unique identifier (integer) of the order that may have granted access to the matching membership plan. If the user membership is not linked to an order, it will return _`null`_.
67
-
`subcription_id` | <code>int|null</code> | The unique identifier (integer) of a subscription that may be linked to the user membership. This property will exist only if the site is running WooCommerce Subscriptions alongside with Memberships. If there is no link to a subscription, the value will be _`null`_.
68
+
`subscription_id` | <code>int|null</code> | The unique identifier (integer) of a subscription that may be linked to the user membership. This property will exist only if the site is running WooCommerce Subscriptions alongside with Memberships. If there is no link to a subscription, the value will be _`null`_.
68
69
`product_id` | <code>int|null</code> | The unique identifier (integer) of a product that may have granted access to the matching membership plan. If the user membership is not linked to a product, it will return _`null`_.
69
70
`date_created` | <code>datetime</code> | The date (in Atom format) when the user membership object was created, in the local timezone. This does not necessarily match with the start date.
70
71
`date_created_gmt` | <code>datetime</code> | The date (in Atom format) when the user membership object was created, in UTC. This does not necessarily match with the start date.
0 commit comments