Skip to main content

Filter: gk/gravityactions/template_vars_get

Allows filtering the the getting of template vars variables, also short circuiting.

Following the same structure as WP Core.

Parameters

NameTypeDescription
$valuemixedThe value that will be filtered.
$indexarray|stringSpecify each nested index in order. Example: [ 'lvl1', 'lvl2' ];
$defaultmixedDefault value if the search finds nothing.
$is_localboolUse the Local or Global template vars.
$templateselfCurrent instance of the Template.

Since

Source

Defined in src/GravityActions/Template.php at line 295