Tribe__Events__Community__Integrations__Virtual_Events::enqueue_assets()

Handle enqueuing the assets for Virtual Events.

Topics


Source #

File: src/Tribe/Integrations/Virtual_Events.php

	public function enqueue_assets() {
		if ( ! tribe_is_community_edit_event_page() ) {
			return;
		}

		// VE's 'admin' CSS and JS are required for CE's front-end.
		$assets_to_enqueue = [
			'tribe-events-virtual-admin-css',
			'tribe-events-virtual-admin-js',
		];

		tribe_asset_enqueue( $assets_to_enqueue );

		tribe_asset_enqueue_group( Assets::$group_key );
	}