Skip to main content

benecaster_guest_manager_before_guest_page

Action Premium guest-manager

Fires on a guest’s public page (/guests/{slug}/), after the theme header and before the guest’s profile.

Parameters

Name Type Default Description
$guest_id int — The guest whose page is shown

Example

add_action( 'benecaster_guest_manager_before_guest_page', function ( int $guest_id ): void {
    echo '<nav class="my-breadcrumbs"><a href="' . esc_url( home_url( '/guests/' ) ) . '">Guests</a></nav>';
} );

Notes

Fired from the guest/single.php template, so a theme override of that template that leaves the call out does not fire it. Walkthrough: Restyle, extend or override a guest's public page.

Affects

  • Guest page

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