benecaster_guest_manager_outcome_email_subject
Filters the subject of the email telling a guest their Guest portal changes were approved or declined. Sent only when the guest has an email.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$subject |
string |
— | The subject |
$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_subject', fn( string $subject, int $guest_id, bool $approved ): string => $approved ? 'Your guest page is updated' : $subject, 10, 3 );
Notes
Need this built rather than just documented? See our services →