Tribe__Template::add_template_globals( array $context = array() )
Configures the class global context
Contents
Parameters
- $context
-
(array) (Optional) Default global Context
Default value: array()
Return
(self)
Source
File: src/Tribe/Template.php
public function add_template_globals( $context = array() ) { // Cast as Array merge and save $this->global = wp_parse_args( (array) $context, $this->global ); return $this; }
Changelog
Version | Description |
---|---|
4.6.2 | Introduced. |