Skip to content

Commit c1123bf

Browse files
committed
Switching to meta_data from profile_fields
1 parent a90fc8b commit c1123bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/External/WooCommerce/Api/members/MembersApi.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ public function list(?ApiProgress $progress = null): Collection
3636
*
3737
* @returns true if adding the membership succeeded
3838
*/
39-
public function addMembership($woo_id, $plan_id, $profile_fields = []): bool
39+
public function addMembership($woo_id, $plan_id, $meta_data = []): bool
4040
{
4141
$response = $this->client->post('/wp-json/wc/v3/memberships/members', [
4242
RequestOptions::JSON => [
4343
'customer_id' => $woo_id,
4444
'plan_id' => $plan_id,
45-
'profile_fields' => $profile_fields
45+
'meta_data' => $meta_data
4646
],
4747
RequestOptions::HTTP_ERRORS => false,
4848
]);

0 commit comments

Comments
 (0)