-
I can’t remember what this is doing can you explain to me please. What happens if I remove them?
//DHVC Form: Hooks Add merge_vars to Mailchimp
add_filter(‘dhvc_form_mailchimp_merge_vars’, function($merge_vars,$data){
if(isset($data[‘Moble’])){
$merge_vars[‘PHONE’] = $data[‘Moble’];//Add Moble field to PHONE field of Mailchimp
}
if(isset($data[‘Date’])){
$merge_vars[‘MMERGE5’] = $data[‘Date’];//Add Moble field to MMERGE5 field of Mailchimp
}
return $merge_vars;
},10,2);//DHVC Form: Hooks Add contact to Mailchimp
add_action(‘dhvc_form_submit_success’, function($submission){
$data = $submission->get_posted_data();
if(isset($data[‘subscribe’]) && $data[‘subscribe’]===’yes’){
dhvc_form_action_mailchimp($data);
}
});
Do I need this in my PHP file anymore?
This topic is: not resolved