Skip to content

Method

Determine if a specific admin page has been added.

has_page( string $page )

public

Parameters

$page string
The page slug.

Return

bool True if the page is a TML admin page, false if not.

Source

public function has_page( $page ) {
    return ! empty( $this->pages[ $page ] );
}

Used by

Changelog

VersionDescription
7.0 Introduced.