Skip to main content

benecaster_guest_manager_after_stop_guest_access

Action Premium guest-manager

Fires after a guest’s Guest portal link was ended (Stop Access), whether or not the portal is on.

Parameters

Name Type Default Description
$guest_id int — The guest's post id
$had_link bool — `true` when there was a live link to end

Example

add_action( 'benecaster_guest_manager_after_stop_guest_access', function ( int $guest_id, bool $had_link ): void {
    if ( $had_link ) {
        my_audit_log( 'guest-portal-stopped', $guest_id );
    }
}, 10, 2 );

Notes

Affects

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

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