Hooks::get_filters( array $filters, Tribe__Context $context, string $breakpoint_pointer )

Get the active filters for display.

Parameters #


(array) (Required) An array of filter objects to display.


(Tribe__Context) (Required) The View current context.


(string) (Required) String we use as pointer to the current view we are setting up with breakpoints.

Top ↑

Return #

(array) An array of active filters to display in the Filter bar.

Top ↑

Source #

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

	public function get_filters( $filters, $context, $breakpoint_pointer ) {
		$active_filters = $this->container->make( Factory::class )->get_active_filters_for_template_vars( $context, $breakpoint_pointer );

		return array_merge( $filters, $active_filters );

Top ↑

Changelog #

Version Description
5.0.0 Introduced.