We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a90fc8b commit c1123bfCopy full SHA for c1123bf
app/External/WooCommerce/Api/members/MembersApi.php
@@ -36,13 +36,13 @@ public function list(?ApiProgress $progress = null): Collection
36
*
37
* @returns true if adding the membership succeeded
38
*/
39
- public function addMembership($woo_id, $plan_id, $profile_fields = []): bool
+ public function addMembership($woo_id, $plan_id, $meta_data = []): bool
40
{
41
$response = $this->client->post('/wp-json/wc/v3/memberships/members', [
42
RequestOptions::JSON => [
43
'customer_id' => $woo_id,
44
'plan_id' => $plan_id,
45
- 'profile_fields' => $profile_fields
+ 'meta_data' => $meta_data
46
],
47
RequestOptions::HTTP_ERRORS => false,
48
]);
0 commit comments