Pages::has_tabs( string $page = '' )

Check if the current page has tabs.


Parameters #

$page

(string) (Optional) The page slug.

Default value: ''


Top ↑

Return #

(boolean) True if the page has tabs, false otherwise.


Top ↑

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

Top ↑

Changelog #

Changelog
Version Description
4.15.0 Introduced.