ea_new_app_from_customer-hook

Support forumCategory: Questionsea_new_app_from_customer-hook
Maggie asked 3 years ago
 How do you get the custom fields to print out? $appointment_data doesn’t return the  custom fields. What is the syntax to get the custom fields?I’m using this code :<?phpadd_action( ‘ea_new_app_from_customer’, ‘custom_callback_function’, 10, 2 );function custom_callback_function( $appointment_id, $appointment_data ) {$to = ‘toto@gmail.com’;$subject = ‘Confirmation’;$body = $appointment_id . ‘-‘ . print_r($appointment_data,true);$headers = array(‘Content-Type: text/html; charset=UTF-8’);wp_mail( $to, $subject, $body, $headers );}
1 Answers
Nikola Loncar Staff answered 3 years ago
Hi Maggie, need to check when that callback is triggered. There should be customers data. Best regards, Nikola