Tribe__Events__Editor__Blocks__Event_Website::assets()

Register the Assets for when this block is active


Return

(void)


Top ↑

Source

File: src/Tribe/Editor/Blocks/Event_Website.php

	public function assets() {
		tribe_asset(
			tribe( 'tec.main' ),
			'tribe-events-block-' . $this->slug(),
			'app/' . $this->slug() . '/frontend.css',
			array(),
			'wp_enqueue_scripts',
			array(
				'conditionals' => array( $this, 'has_block' ),
			)
		);
	}

Top ↑

Changelog

Changelog
Version Description
4.7 Introduced.