Tribe__Main::should_load_common_admin_css()

Tells us if we’re on an admin screen that needs the Common admin CSS.

Currently this includes post type screens, the Plugins page, Settings pages and tabs, Tribe App Shop page, and the Help screen.


Return

(bool) Whether we should load Common Admin CSS or not.


Top ↑

Source

File: src/Tribe/Main.php

	public function should_load_common_admin_css() {
		$helper = Tribe__Admin__Helpers::instance();

		// Are we on a post type screen?
		$is_post_type = $helper->is_post_type_screen();

		// Are we on the Plugins page?
		$is_plugins = $helper->is_screen( 'plugins' );

		// Are we viewing a generic Tribe screen?
		// Includes: Events > Settings, Events > Help, App Shop page, and more.
		$is_tribe_screen = $helper->is_screen();

		return $is_post_type || $is_plugins || $is_tribe_screen;
	}

Top ↑

Changelog

Changelog
Version Description
4.5.7 Introduced.