Pages::determine_current_page()
Determine the current page.
Return
(string|boolean) Current page or false if not registered with this controller.
Source
File: src/Tribe/Admin/Pages.php
public function determine_current_page() { $current_screen = function_exists( 'get_current_screen' ) ? get_current_screen() : null; if ( is_null( $current_screen ) ) { $this->current_page = tribe_get_request_var( 'page' ); return $this->current_page; } $this->current_page = $current_screen->id; return $this->current_page; }
Changelog
Version | Description |
---|---|
4.15.0 | Introduced. |