Block::register_editor_scripts()

Registers the editor scripts.


Return

(void)


Top ↑

Source

File: src/Tickets/Blocks/Ticket/Block.php

	public function register_editor_scripts() {
		$plugin = Tickets_Main::instance();
		$min    = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';

		// Using WordPress functions to register since we just need to register them.
		wp_register_script(
			'tec-tickets-ticket-item-block-editor-script',
			$plugin->plugin_url . "build/Tickets/Blocks/Ticket/editor.js",
			[ 'tribe-common-gutenberg-vendor', 'tribe-tickets-gutenberg-vendor' ]
		);

		wp_register_style(
			'tec-tickets-ticket-item-block-editor-style',
			$plugin->plugin_url . "build/Tickets/Blocks/Ticket/editor{$min}.css",
			[ 'tribe-tickets-gutenberg-main-styles' ]
		);
	}

Top ↑

Changelog

Changelog
Version Description
5.8.0 Introduced.