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
I intend to update user metadata that has been stored by WP User Frontend (WPUF), which can be described as a community plugin with frontend editing and enhanced profile. I'm not using WooCommerce.
As I understood, the action wc_hub_hubspot_contact_properties is called as soon as an user registers, updates or logs in. It takes the parameters $properties, $user – great, sounds easy. I built my coude upon your example. But while standard WP fields are mapped successfully, the custom ones don't appear in Hubspot.
For a very easy example, I store the phone number of a user in its meta key phone. And I want to map it to the field phone at Hubspot.
My code is as follows – what did I miss? Please ignore handling of the address etc.
On first glance I don't see anything that stands out. You will want to verify two things.. 1) that the hubspot property does indeed have the correct internal name and 2) that $user->get( ... ) method does return your custom values. If both those are verified then it /should/ map the data.
To verify the hubspot internal name of the properties, in hubspot go to your Settings > Data Management > Properties then find the hubspot field, click "Edit" and check the internal names as in the example screenshot
Hey,
thanks for offering this useful plugin.
I intend to update user metadata that has been stored by WP User Frontend (WPUF), which can be described as a community plugin with frontend editing and enhanced profile. I'm not using WooCommerce.
As I understood, the action
wc_hub_hubspot_contact_properties
is called as soon as an user registers, updates or logs in. It takes the parameters$properties, $user
– great, sounds easy. I built my coude upon your example. But while standard WP fields are mapped successfully, the custom ones don't appear in Hubspot.For a very easy example, I store the phone number of a user in its meta key
phone
. And I want to map it to the fieldphone
at Hubspot.My code is as follows – what did I miss? Please ignore handling of the address etc.
Thank you for reading and your help.
The text was updated successfully, but these errors were encountered: