Tribe__Events__Community__Tickets__Main::maybe_enqueue_admin_resources( string $screen )

Enqueue the admin resources where needed.


Parameters #

$screen

(string) (Required) WP_Screen ID.


Top ↑

Source #

File: src/Tribe/Main.php

	public function maybe_enqueue_admin_resources( $screen ) {
		if (
			'tribe_events_page_tribe-common' === $screen
			|| 'tribe_events_page_tickets-orders' === $screen
			|| 'tribe_events_page_tickets-attendees' === $screen
		) {
			wp_enqueue_style( 'events-community-tickets-admin' );
			wp_enqueue_script( 'events-community-tickets-admin' );
		}
	}

Top ↑

Changelog #

Changelog
Version Description
4.7.4 Change to tribe_asset_enqueue().
1.0 Introduced.