Settings::is_tec_events_settings()
Defines whether the current page is The Events Calendar Settings page.
Return
(boolean) Whether the current page is The Events Calendar Settings page.
Source
File: src/Tribe/Admin/Settings.php
public function is_tec_events_settings() {
$admin_pages = tribe( 'admin.pages' );
$admin_page = $admin_pages->get_current_page();
return ! empty( $admin_page ) && static::$settings_page_id === $admin_page;
}
Changelog
| Version | Description |
|---|---|
| 5.15.0 | Introduced. |