Can’t pull WP fields into CRM
-
Hi,
I’ve tried to pull in first and last name fields via a registration form using Paid Membership Pro in my Zero BS CRM. I can see that the data is being registered in WP – users are being created and first and last names are being created fine. However, it doesn’t pull through to the CRM even though I’ve chosen the fields and mapped them using the Contact Fields tab.
I’ve used the following filters as well:
function my_wpf_filter_registration( $user_meta, $user_id ) {
if( isset( $user_meta[‘first_name’] ) ) {
$user_meta[‘fname’] = $user_meta[‘first_name’];
}
if( isset( $user_meta[‘last_name’] ) ) {
$user_meta[‘lname’] = $user_meta[‘last_name’];
}
if( isset( $user_meta[‘street_name’] ) ) {
$user_meta[‘addr1’] = $user_meta[‘street_name’];
}
if( isset( $user_meta[‘house_number’] ) ) {
$user_meta[‘addr2’] = $user_meta[‘house_number’];
}
return $user_meta;}
add_filter( ‘wpf_user_register’, ‘my_wpf_filter_registration’, 10, 2 );
function my_watch_meta_field( $fields ) {
$fields[] = ‘first_name’;
$fields[] = ‘last_name’;
$fields[] = ‘street_name’;
$fields[] = ‘house_number’;
$fields[] = ‘postcode’;
$fields[] = ‘town’;
$fields[] = ‘newsletter’;
return $fields;
}
add_filter( ‘wpf_watched_meta_fields’, ‘my_watch_meta_field’ );I created the name fields with keys first_name and last_name using paid membership pros Register Helper Addon.
I have Push AND Push All checked in WP Fusion settings. The names only get pushed if I manually push all meta.
Can you help please?
Thanks
- The topic ‘Can’t pull WP fields into CRM’ is closed to new replies.