tec_is_venue_view()

Conditional function for if we are on a venue view.


Return

(bool)


Top ↑

Source

File: src/functions/template-tags/general.php

	function tec_is_venue_view(): bool {
		$context  = tribe_context();
		$is_venue_view = tec_is_view( Venue_View::get_view_slug() );

		/**
		 * Allows filtering of the tec_is_venue_view boolean value.
		 *
		 * @since 6.0.7
		 *
		 * @param boolean $is_venue_view Whether you're on a venue view or not
		 */
		return (bool) apply_filters( 'tec_is_venue_view', $is_venue_view, $context );
	}

Top ↑

Changelog

Changelog
Version Description
6.0.7 Introduced.