Callback array hook not filled properly

SupportCallback array hook not filled properly
Pierre asked 4 years ago
Hi, I'm using this code : <?php
add_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 );
}   But it doesn't fill the array with the data entered by the user 25-Array ( [id] => 25 [location] => 1 [service] => 2 [worker] => 1 [name] => [email] => [phone] => [date] => 2020-11-24 [start] => 14:30:00 [end] => 16:00:00 [end_date] => 2020-11-24 [description] => [status] => confirmed [user] => [created] => 2020-11-12 12:58:31 [price] => 3000.00 [ip] =>....  [session] => ) 
1 Answers
Nikola Loncar Staff answered 4 years ago
Hi Pierre, you are missing custom fields there? Best regards, Nikola