apply_filters( 'tribe_template_context_get', mixed $value, array|string $index, mixed $default, boolean $is_local, self $template )

Allows filtering the the getting of Context variables, also short circuiting Following the same structure as WP Core


Parameters

$value

(mixed) The value that will be filtered.

$index

(array|string) Specify each nested index in order. Example: [ 'lvl1', 'lvl2' ];

$default

(mixed) Default value if the search finds nothing.

$is_local

(boolean) Use the Local or Global context.

$template

(self) Current instance of the Tribe__Template.


Top ↑

Source

File: src/Tribe/Template.php


Top ↑

Changelog

Changelog
Version Description
4.6.2 Introduced.