Hooks::filter_live_filters_option_value( string $value, string $key )

Filter the liveFiltersUpdate option to do some switching for V2.

Note: this triggers on option_liveFiltersUpdate, tribe_get_option, AND tribe_field_value. We don’t have to add/remove filters because we don’t need to get the value – it’s already provided.


Parameters

$value

(string) (Required) The option value.

$key

(string) (Required) The option key.


Top ↑

Return

(string) Converted value of the Live Filters string.


Top ↑

Source

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

	public function filter_live_filters_option_value( $value, $key ) {
		if ( 'liveFiltersUpdate' !== $key ) {
			return $value;
		}

		return $this->live_filters_maybe_convert( $value );
	}

Top ↑

Changelog

Changelog
Version Description
5.0.3 Introduced.