benecaster_guest_manager_invitation_email_message
Filters the plain-text body of the email that sends a guest their Guest portal link. The link works for 14 days.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$message |
string |
— | The body |
$guest_id |
int |
— | The guest's post id |
$link |
string |
— | The guest's private link |
$expires_gmt |
string |
— | When the link stops working, UTC `Y-m-d H:i:s` |
Returns:
string
Example
// Add the show's booking contact to the bottom of every invitation.
add_filter( 'benecaster_guest_manager_invitation_email_message', static function ( string $message ): string {
return $message . "\n\n" . __( 'Questions? Reply to bookings@example.com.', 'my-plugin' );
} );
Notes
Keep $link in the message: without it the guest cannot open the form. Never log or store it. Walkthrough: Invite a guest to the Guest portal, or stop their link, from code, and change the invitation email.
Need this built rather than just documented? See our services →