Filters::should_display_filters( TribeEventsViewsV2View_Interface $view )

Get whether filters should display or not.


Parameters #

$view

(TribeEventsViewsV2View_Interface) (Required) The View currently rendering.


Top ↑

Return #

(bool)


Top ↑

Source #

File: src/Tribe/Views/V2/Filters.php

	public function should_display_filters( $view ) {
		/**
		 * Allows filtering of whether filters should display.
		 *
		 * @since 4.9.1
		 *
		 * @param bool                                  $should_display_filters Boolean on whether to display filters or not.
		 * @param \Tribe\Events\Views\V2\View_Interface $view                   The View currently rendering.
		 */
		return apply_filters( 'tribe_events_filter_bar_views_v2_should_display_filters', true, $view );
	}

Top ↑

Changelog #

Changelog
Version Description
4.9.1 Introduced.