eventorganiser_booking_confirmed_email_headers
(filter)
Pro
Filters the headers of the e-mail sent to the bookee after a booking is confirmed
This filters the headers which by default set the reply-to and from e-mail (both set to the
site admin). You can use this filter, for example, to set Cc and Bcc
add_filter( 'eventorganiser_booking_confirmed_email_headers', function( $headers, $booking_id ) {
$headers[] = 'Bcc: Joe Bloggs <jbloggs@example.com>';
return $headers;
}, 10, 2 );
Parameters
string
|
$headers |
The headers of the e-mail.
|
int
|
$booking_id |
The ID of the booking this e-mail is for
|
Example Usage
add_filter( 'eventorganiser_booking_confirmed_email_headers', 'my_callback_function', 10, 2 );
function my_callback_function( $headers, $booking_id ){
//Change first value and return it
return $headers
};
Related
Resources