Skip to main content

benecaster_guest_manager_outcome_email_message

Filter Premium guest-manager

Filters the plain-text body of the email telling a guest their Guest portal changes were approved (with a link to their page) or declined.

Parameters

Name Type Default Description
$message string — The body
$guest_id int — The guest's post id
$approved bool — `true` for approved, `false` for declined

Returns: string

Example

add_filter( 'benecaster_guest_manager_outcome_email_message', fn( string $message, int $guest_id, bool $approved ): string => $approved ? $message : $message . "\n\nReply to this email if you have questions.", 10, 3 );

Notes

Need this built rather than just documented? See our services →