Tribe__Events__Community__Main::maybe_enqueue_admin_assets( string $screen )

Enqueue the admin resources where needed.


Parameters

$screen

(string) (Required) the current admin screen.


Top ↑

Source

File: src/Tribe/Main.php

		public function maybe_enqueue_admin_assets( $screen ) {
			if (
				'tribe_events_page_tribe-common' === $screen
				&& isset( $_GET['tab'] )
				&& 'community' === $_GET['tab']
			) {
				wp_enqueue_style( Tribe__Events__Main::POSTTYPE . '-community-admin-styles' );
			}


		}

Top ↑

Changelog

Changelog
Version Description
4.6.3 Introduced.