Not pushing Paid Membership Pro expiry date to Zero BS CRM
-
Hi,
I am trying to send Paid Membership Pro’s user/member membership expiry date to a Zero BS CRM custom field called Membership Expiry using WP Fusion.
In Custom Fields settings on WP Fusion, it finds the Zero BS CRM custom field called Membership Expiry. Ive added the meta key ‘enddate’ from PMPro to the meta field list but when I register as a new user, I dont get any data in that field. Even the log shows that there is no attempt at finding that field. I have “Push All” checked in General Settings.
I have the following functions in my functions.php file in an attempt to make it push the data through:
function my_wpf_filter_registration( $user_meta, $user_id ) {
if( isset( $_POST[‘membership-expiry’] ) ) {
$user_meta[‘enddate’] = $_POST[‘membership-expiry’];
}
return $user_meta;
}
add_filter( ‘wpf_user_register’, ‘my_wpf_filter_registration’, 10, 2 );add_action( ‘user_register’, ‘zerobscrm_user_register’ );
function zerobscrm_user_register( $user_id ) {
if ( ! empty( $_POST[‘membership-expiry’] ) ) {
update_user_meta( $user_id, ‘enddate’, trim( sanitize_text_field($_POST[‘membership-expiry’] ) ) );
}
}Is there anything you could do to help? Im really stuck.
Thanks
RommelThe page I need help with: [log in to see the link]
- The topic ‘Not pushing Paid Membership Pro expiry date to Zero BS CRM’ is closed to new replies.