Page::is_on_page()
Defines wether the current page is the Event Tickets All Tickets page.
Return
(boolean)
Source
File: src/Tickets/Admin/Tickets/Page.php
public function is_on_page(): bool {
$admin_pages = tribe( 'admin.pages' );
$admin_page = $admin_pages->get_current_page();
return ! empty( $admin_page ) && static::$slug === $admin_page;
}
Changelog
| Version | Description |
|---|---|
| 5.14.0 | Introduced. |