Settings::is_on_tab_section( string $tab = '', string $section = '' )
Check if the current page is on a specific tab for the Tickets settings.
Contents
Parameters
- $tab
-
(string) (Optional) The tab name.
Default value: ''
- $section
-
(string) (Optional) The section name.
Default value: ''
Return
(boolean)
Source
File: src/Tribe/Admin/Settings.php
public function is_on_tab_section( $tab = '', $section = '' ): bool {
if ( ! $this->is_on_tab( $tab ) || empty( $section ) ) {
return false;
}
return tribe_get_request_var( 'section' ) === $section;
}
Changelog
| Version | Description |
|---|---|
| 5.6.3 | Added the ability to also check tc-section request var. |
| 5.5.9 | Introduced. |