Provider::register_assets()

Binds and sets up implementations.


Source #

File: src/Events/Editor/Full_Site/Provider.php

	public function register_assets() {
		$plugin = Events_Main::instance();

		tribe_asset(
			$plugin,
			'tec-events-full-site',
			'app/full-site.js',
			[
				'react',
				'react-dom',
				'wp-components',
				'wp-api',
				'wp-api-request',
				'wp-blocks',
				'wp-i18n',
				'wp-element',
				'wp-editor',
				'tribe-common-gutenberg-data',
				'tribe-common-gutenberg-utils',
				'tribe-common-gutenberg-store',
				'tribe-common-gutenberg-icons',
				'tribe-common-gutenberg-hoc',
				'tribe-common-gutenberg-elements',
				'tribe-common-gutenberg-components',
			],
			'enqueue_block_editor_assets',
			[
				'in_footer'    => false,
				'localize'     => [],
				'conditionals' => [ $this, 'is_full_site_editor' ],
				'priority'     => 106,
			]
		);
	}

Top ↑

Changelog #

Changelog
Version Description
5.14.2 Introduced.