Hooks::filter_hide_filter_bar_organizer_venue( bool $should_display_filters, TribeEventsViewsV2View_Interface $view )

Filters the should display filters for organizer and venue views.


Parameters #

$should_display_filters

(bool) (Required) Boolean on whether to display filters or not.

$view

(TribeEventsViewsV2View_Interface) (Required) The View currently rendering.


Top ↑

Return #

(bool)


Top ↑

Source #

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

	public function filter_hide_filter_bar_organizer_venue( $should_display_filters, $view ) {
		$slug = $view->get_slug();

		if ( ! in_array( $slug, [ 'organizer', 'venue' ] ) ) {
			return $should_display_filters;
		}

		return false;
	}

Top ↑

Changelog #

Changelog
Version Description
5.0.1 Introduced.