Attendees::filter_admin_title( string $admin_title )

Sets the browser title for the Attendees admin page.

Uses the event title.


Parameters

$admin_title

(string) (Required) The page title in the admin.


Top ↑

Return

(string)


Top ↑

Source

File: src/Tickets/Commerce/Reports/Attendees.php

	public function filter_admin_title( $admin_title ) {
		if ( ! empty( (int) $_GET['event_id'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
			$event = get_post( (int) $_GET['event_id'] ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended
			// translators: The title of an event's Attendee List page in the dashboard. %1$s is the name of the event.
			$admin_title = sprintf( __( '%1$s - Attendee list', 'event-tickets' ), $event->post_title );
		}

		return $admin_title;
	}

Top ↑

Changelog

Changelog
Version Description
5.2.0 Introduced.