Skip to content

Commit 201a83f

Browse files
committed
Add the profile fields definitions
1 parent 6a59a8a commit 201a83f

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

source/includes/_user_memberships.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Property | Type | Description
2828
`cancelled_date` | <code>datetime&#124;null</code> | The date (in Atom format) when the membership was cancelled, in the local timezone. This is `null` if the membership was not cancelled.
2929
`cancelled_date_gmt` | <code>datetime&#124;null</code> | The date (in Atom format) when the membership was cancelled, in UTC. This is `null` if the membership was not cancelled.
3030
`view_url` | <code>string</code> | _`read-only`_<br><br>URL pointing to the site's Members Area accessible to the membership's owner.
31+
`profile_fields` | <code>array&#124;object</code> | Holds any profile fields set on the membership. Each array item has a "slug" _`(string)`_ and a "value" (either a _`boolean`_, an _`integer`_, _`float`_, _`string`_, or _`array`_).
3132
`meta_data` | <code>array&#124;object</code> | Holds any WordPress meta data set on the membership. Each array item has an "id" _`(integer)`_, a "key" _`(string)`_ and a "value" (either a _`boolean`_, an _`integer`_, or _`string`_, which could also represent serialized data).
3233
`links` | <code>array</code> | _`read-only`_<br><br>An array of items linking to related objects accessible through the REST API.
3334

source/includes/user_memberships/_create.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ $woocommerce->post( 'memberships/members', $user_membership_data );
3535
"cancelled_date": null,
3636
"cancelled_date_gmt": null,
3737
"view_url": "http://skyverge.test/my-account/members-area/222/my-membership-content/",
38+
"profile_fields": [],
3839
"meta_data": [],
3940
"_links": {
4041
"self": [
@@ -78,5 +79,6 @@ Attribute | Type | Description
7879
`end_date_gmt` | <code>datetime</code> | _Optional_. The date when the membership will end, in UTC. If status is expired, defaults to the present time when the request is issued.
7980
`paused_date_gmt` | <code>datetime</code> | _Optional_. The date when the membership has been paused since, in UTC. If status is paused, defaults to the present time when the request is issued.
8081
`cancelled_date_gmt` | <code>datetime</code> | _Optional_. The date when the membership has been cancelled, in UTC. If status is cancelled, defaults to the present time when the request is issued.
82+
`profile_fields` | <code>array&#124;object</code> | _Optional_. Pass any profile fields to be set on the membership. Each array item has a "slug" _`(string)`_ and a "value" (either a _`boolean`_, an _`integer`_, _`float`_, _`string`_, or _`array`_).
8183
`meta_data` | <code>array</code> | _Optional_. Pass any WordPress post meta data to be set on the membership. Each array item has an "id" _`(integer)`_, a "key" _`(string)`_ and a "value" (either a _`boolean`_, an _`integer`_, or _`string`_, which could also represent serialized data).
8284

source/includes/user_memberships/_read.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ $woocommerce->get( 'memberships/members' );
3131
"cancelled_date": null,
3232
"cancelled_date_gmt": null,
3333
"view_url": "http://skyverge.test/my-account/members-area/10/my-membership-content/",
34+
"profile_fields": [],
3435
"meta_data": [],
3536
"_links": {
3637
"self": [
@@ -117,6 +118,7 @@ $woocommerce->get( 'memberships/members/<id>' );
117118
"cancelled_date": null,
118119
"cancelled_date_gmt": null,
119120
"view_url": "http://skyverge.test/my-account/members-area/10/my-membership-content/",
121+
"profile_fields": [],
120122
"meta_data": [],
121123
"_links": {
122124
"self": [

source/includes/user_memberships/_update.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ $woocommerce->put( 'memberships/members', $user_membership_data );
3434
"cancelled_date": null,
3535
"cancelled_date_gmt": null,
3636
"view_url": "http://skyverge.test/my-account/members-area/222/my-membership-content/",
37+
"profile_fields": [],
3738
"meta_data": [],
3839
"_links": {
3940
"self": [

0 commit comments

Comments
 (0)