This is my code :
add_action(’eme_update_event_action’,’email_to_confirm’);
function email_to_confirm($event) {
$to = the_author_meta(‘user_email’,$event);
$subject = ‘Published activity’;
$message = “Hello…”;
echo “Email :”.get_the_author_meta(‘user_email’,$event).””;
print_r($event);
}
The result of print_r =
Array ( [event_name] => test [event_status] => 2 [event_start_date] => 2011-09-22 [event_end_date] => 2011-09-22 [event_start_time] => 00:00:00 [event_end_time] => 00:00:00 [event_rsvp] => 0 [rsvp_number_days] => 0 [registration_requires_approval] => 0 [registration_wp_users_only] => 0 [event_seats] => 0 [use_paypal] => 0 [price] => 0 [currency] => EUR [event_contactperson_id] => -1 [event_notes] => test234567 [event_page_title_format] => [event_single_event_format] => [event_contactperson_email_body] => [event_respondent_email_body] => [event_url] => [event_slug] => test/ [event_category_ids] => [event_attributes] => a:0:{} [location_id] => 0 [recurrence_id] => 0 [modif_date] => 2011-09-09 14:25:48 [modif_date_gmt] => 2011-09-09 18:25:48 )