Pages::has_tabs( string $page = '' )
Check if the current page has tabs.
Parameters #
- $page
-
(string) (Optional) The page slug.
Default value: ''
Return #
(boolean) True if the page has tabs, false otherwise.
Source #
File: src/Tribe/Admin/Pages.php
public function has_tabs( $page = '' ) { if ( empty( $page ) ) { $page = $this->get_current_page(); } return in_array( $page, $this->get_pages_with_tabs() ); }
Changelog #
Version | Description |
---|---|
4.15.0 | Introduced. |