• Home
  • Knowledgebase
  • DevDocs
  • Translations
  • Support
  • Live Preview

logo DevDocs

By The Events Calendar
Filter by type:
Skip to content
Filter by type:
Search
Browse: Home / Classes / Assets / Assets::register_admin_assets()
Product: The Events Calendar PRO

Assets::register_admin_assets()


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,
			]
		);
	}

Expand full source code Collapse full source code

The Events Calendar
  • Home
  • Products
  • Blog
  • Support
© 2023 The Events Calendar Terms and Conditions Privacy