I’m trying to send a customized email when an event is submitted on the front event via Community Events. I hooked my function onto the tribe_events_update_meta action, but it is firing twice.
add_action(‘tribe_events_update_meta’, ‘pcs_send_confirmation_email’,10,4);
function pcs_send_confirmation_email($event_id, $false=false, $data=false, $event=false){
if($false[“community-event”] == ‘Submit Event’) mail(‘[email protected]’,$event_id,$false);
}
Any thoughts or ideas for other actions to hook onto after the event has been saved? Thanks.