Assets::register_admin_assets()

Topics


Source #

File: src/Tribe/Views/V2/Widgets/Assets.php

	public function register_admin_assets() {
		if ( ! tribe_events_views_v2_is_enabled() ) {
			return;
		}

		$plugin = Pro_Plugin::instance();

		tribe_asset(
			$plugin,
			'tribe-admin-widget',
			'admin-widget.js',
			[
				'jquery',
				'underscore',
				'tribe-select2',
			],
			null,
			[
				'priority'     => 5,
			]
		);
	}