mc_event_mail_to

Details

File: my-calendar-core.php

Code: $to = apply_filters( 'mc_event_mail_to', get_option('mc_event_mail_to'), $event );

Since: 2.2.0

Example

				
				

add_filter( 'mc_event_mail_to', 'my_function', 10, 2 );
function my_function( $email, $event ) {
// use email address and event array to return alternate email for event notifications
if ( $event['cat_id']) == 1 ) { $email = 'general@domain.com'; }
return $email;
}

,

Return to Top