Hooks::action_include_filter_bar( string $file, array $name, TribeEventsViewsV2Template $template )

Fires to include the filter bar.


Parameters #

$file

(string) (Required) Complete path to include the PHP File.

$name

(array) (Required) Template name.

$template

(TribeEventsViewsV2Template) (Required) Current instance of the template.


Top ↑

Return #

(string|void)


Top ↑

Source #

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

	public function action_include_filter_bar( $file, $name, $template ) {
		$context = $template->get_context();

		if ( ! $this->should_display_filters || $context->get( 'shortcode', false ) ) {
			return '';
		}

		return $this->container->make( Template::class )->template( 'filter-bar', $template->get_values() );
	}

Top ↑

Changelog #

Changelog
Version Description
4.9.0 Introduced.