Not synchronize when a member update their profile
-
Hello!
Mailchimp Add On is not updating on profile save when a user change their profile.
– (I had select “YES” for “update on profile save” on the add on settings page)-
– Merge Tags are already created on Mailchimp.Im using Custom Fields, but the addon is not updating fields like LNAME, neither.
——–
Here is my recipe for the Custom Fields:function mytheme_add_fields_to_signup(){ //don't break if Register Helper is not loaded if(!function_exists( 'pmprorh_add_registration_field' )) { return false; } $fields = array();
$fields[] = new PMProRH_Field(
‘GENERO’, // input name, will also be used as meta key
‘radio’, // type of field
array(
‘options’ =>
array(
‘HOMBRE’ => ‘Hombre’,
‘MUJER’ => ‘Mujer’,
),‘label’=>’Soy:’, // custom class
‘profile’=>true, // show in user profile
‘required’=>true, // make this field required
‘location’ => ‘after_submit_button’,
)
);
//add the fields to default forms
foreach($fields as $field){
pmprorh_add_registration_field(
‘after_email’, // location on checkout page
$field // PMProRH_Field object
);
}
}
add_action( ‘init’, ‘mytheme_add_fields_to_signup’ );
——————-My recipe for Mailchimp:
function my_pmpro_mailchimp_listsubscribe_fields( $fields, $user )
{
$new_fields = array(
“GENERO” => $user->GENERO,
);
$fields = array_merge( $fields, $new_fields );
return $fields;
}add_action( ‘pmpro_mailchimp_listsubscribe_fields’, ‘my_pmpro_mailchimp_listsubscribe_fields’, 10, 2 );
/**
* Tell PMPro MailChimp to always synchronize user profile updates. By default it only synchronizes if the user’s email has changed (optional).
* Requires PMPro Mailchimp v2.0.3 or higher.
*/
add_filter( ‘pmpromc_profile_update’, ‘__return_true’ );
- The topic ‘Not synchronize when a member update their profile’ is closed to new replies.