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.


Top ↑

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;
	}

Top ↑

Changelog

Changelog
Version Description
5.15.0 Introduced.