Tribe__Cache_Listener::filter_action_last_occurrence_triggers( array $triggers = array(), string $action = '', array $args = array() )

Filtering for last occurrence triggers.


Parameters #

$triggers

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

Default value: array()

$action

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

Default value: ''

$args

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

Default value: array()


Top ↑

Return #

(array)


Top ↑

Source #

File: src/Tribe/Cache_Listener.php

	public function filter_action_last_occurrence_triggers( array $triggers = [], $action = '', array $args = [] ) {

		/**
		 * Filters the contents of which options will trigger expiring a given actions cache.
		 *
		 * @since 4.13.2
		 *
		 * @param array<string,bool> $triggers Which options will trigger this given action last occurrence.
		 * @param string             $action   Which action this trigger will set.
		 * @param array              $args     Which arguments from the updated option method.
		 */
		$triggers = apply_filters( 'tribe_cache_last_occurrence_option_triggers', $triggers, $action, $args );

		/**
		 * Filters the contents of which options will trigger expiring a given actions cache.
		 * Allows filtering a specific action.
		 *
		 * @since 4.13.2
		 *
		 * @param array<string,bool> $triggers Which options will trigger this given action last occurrence.
		 * @param string             $action   Which action this trigger will set.
		 * @param array              $args     Which arguments from the updated option method.
		 */
		return (array) apply_filters( "tribe_cache_last_occurrence_option_triggers:{$action}", $triggers, $action, $args );
	}

Top ↑

Changelog #

Changelog
Version Description
4.13.2 Introduced.