benecaster_guest_manager_after_guest_directory
Fires on the public guest directory (/guests/), after the list and before the theme footer. The directory is drawn only while it is switched on.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$directory |
array |
— | What the page drew: `show_id`, `show_filter`, `search`, `page`, `pages`, `total`, `guests`, `previous_url`, `next_url`, `form` |
Example
add_action( 'benecaster_guest_manager_after_guest_directory', function ( array $directory ): void {
printf( '<p class="my-total">%d guests so far.</p>', (int) $directory['total'] );
} );
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 →