Tribe__App_Shop::is_current_page()

Checks if the current page is the app shop


Return

(bool)


Top ↑

Source

File: src/Tribe/App_Shop.php

		public function is_current_page() {
			if ( ! Tribe__Settings::instance()->should_setup_pages() || ! did_action( 'admin_menu' ) ) {
				return false;
			}

			if ( is_null( $this->admin_page ) ) {
				_doing_it_wrong(
					__FUNCTION__,
					'Function was called before it is possible to accurately determine what the current page is.',
					'4.5.6'
				);
				return false;
			}

			return Tribe__Admin__Helpers::instance()->is_screen( $this->admin_page );
		}

Top ↑

Changelog

Changelog
Version Description
4.5.7 Introduced.