Tribe__Events__Pro__Assets::should_enqueue_frontend()

When to enqueue the Pro Styles on the front-end


Return

(bool)


Top ↑

Source

File: src/Tribe/Assets.php

	public function should_enqueue_frontend() {
		global $post;

		return (
			tribe_is_event_query()
			|| ( $post instanceof WP_Post && has_shortcode( $post->post_content, 'tribe_events' ) )
		);
	}

Top ↑

Changelog

Changelog
Version Description
5.0.0 Cache the check value.
4.4.30 Introduced.