11.2 Action Hook: lcw_update_product_meta
By this action hook, you can add product metadata to GHL. this hook provides 3 parameters a). $product b). $product_id c). $contact_id (GHL contact id)
it can be done in 2 ways,
add product metadata to the contact custom field: to do this you need to use a function lcw_update_contact_fields() where you need to pass an array of your custom field keys with respective values. example:
add product metadata as a note: to do this you also need to use a function lcw_create_contact_note() where you need to pass the note to add to the contact.
To implement this hook let's see an example:
Last updated