Tribe__Tickets__Assets::should_enqueue_tickets_loader()

Check if we should enqueue the new Tickets Loader script.


Return

(bool)


Top ↑

Source

File: src/Tribe/Assets.php

	public function should_enqueue_tickets_loader() {
		$are_new_views_enabled = tribe_tickets_new_views_is_enabled()
			|| tribe_tickets_rsvp_new_views_is_enabled();

		/**
		 * Allow filtering whether the Tickets Loader script should be enqueued.
		 *
		 * @since 5.1.1
		 *
		 * @param bool $should_enqueue_tickets_loader Whether the Tickets Loader script should be enqueued.
		 */
		return (bool) apply_filters( 'tribe_tickets_assets_should_enqueue_tickets_loader', $are_new_views_enabled );
	}

Top ↑

Changelog

Changelog
Version Description
5.1.1 Introduced.