Skip to main content

benecaster_guest_manager_before_invite_guest

Action Premium guest-manager

Fires before a guest’s Guest portal link is made and emailed (Invite to Edit Profile or Send a New Link).

Parameters

Name Type Default Description
$guest_id int — The guest's post id

Example

add_action( 'benecaster_guest_manager_before_invite_guest', function ( int $guest_id ): void {
    error_log( 'Inviting guest ' . $guest_id );
} );

Notes

Not fired for a refused request (portal off, no email, no such guest). Walkthrough: Invite a guest to the Guest portal, or stop their link, from code, and change the invitation email.

Affects

  • POST benecaster-guest-manager/v1/guests/{id}/invitation

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