Hooks::filter_add_widget_caching_triggers( TribeEventsProViewsV2Widgetsarray $triggers, string $action, array $args )

Filters the caching triggers to add the widgets Week and Month.


Parameters

$triggers

(<span class="TribeEventsProViewsV2Widgetsarray">TribeEventsProViewsV2Widgetsarray) (Required) Which options will trigger this given action last occurrence.

$action

(string) (Required) Which action this trigger will set.

$args

(array) (Required) Which arguments from the updated option method.


Top ↑

Return

(array)


Top ↑

Source

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

	public function filter_add_widget_caching_triggers( $triggers, $action, $args ) {
		$triggers[ 'widget_' . Widget_Month::PREFIX . Widget_Month::get_widget_slug() ] = true;
		$triggers[ 'widget_' . Widget_Week::PREFIX . Widget_Week::get_widget_slug() ]   = true;

		return $triggers;
	}

Top ↑

Changelog

Changelog
Version Description
5.6.0 Introduced.