benecaster_guest_manager_before_guest_directory
Fires on the public guest directory (/guests/) and on each show’s own directory, after the theme header and before the list. A directory is drawn only while it is switched on; $directory['show_id'] says which show’s directory it is (0 on /guests/ with no Show filter).
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$directory |
array |
— | What the page draws, after [benecaster_guest_manager_guest_directory_data](/hooks/benecaster_guest_manager_guest_directory_data/): `show_id`, `show_filter`, `search`, `page`, `pages`, `total`, `guests`, `previous_url`, `next_url`, `form` |
Example
add_action( 'benecaster_guest_manager_before_guest_directory', function ( array $directory ): void {
echo '<p class="my-intro">Everyone who has been on the show, A to Z.</p>';
} );
Notes
Fired from the guest/directory.php template, so not by the benecaster_guests shortcode. Walkthrough: Switch on, restyle or extend the public guest directory.
Affects
- Guest directory
Need this built rather than just documented? See our services →