Tribe__Template::add_template_globals( array $context = array() )

Configures the class global context


Parameters

$context

(array) (Optional) Default global Context

Default value: array()


Top ↑

Return

(self)


Top ↑

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;
	}

Top ↑

Changelog

Changelog
Version Description
4.6.2 Introduced.