Tribe__Events__Filterbar__Settings::filter_live_update_tooltip( array $fields )

Modifies the Live update tooltip properly.


Parameters #

$fields

(array) (Required) Fields that were passed for the Settigns tab.


Top ↑

Return #

(array) Fields after changing the tooltip.


Top ↑

Source #

File: src/Tribe/Settings.php

	public function filter_live_update_tooltip( $fields ) {
		if ( empty( $fields['liveFiltersUpdate'] ) ) {
			return $fields;
		}

		$disable_bar = tribe_is_truthy( tribe_get_option( 'tribeDisableTribeBar', false ) );
		if ( $disable_bar && ! tribe_events_views_v2_is_enabled() ) {
			return $fields;
		}

		$fields['liveFiltersUpdate']['tooltip'] .= esc_html__( '(Note: When Live Refresh is enabled, TEC functionality may not be fully compliant with Web Accessibility Standards)', 'tribe-events-filter-view' );

		return $fields;
	}

Top ↑

Changelog #

Changelog
Version Description
4.9.0 Introduced.