Template::get_context()

Returns the current template context.


Return

(Tribe__Context) The template context instance, or the global context if no context is set.


Top ↑

Source

File: src/Tribe/Views/V2/Template.php

	public function get_context() {
		return $this->context instanceof \Tribe__Context ? $this->context : tribe_context();
	}

Top ↑

Changelog

Changelog
Version Description
5.0.0 Introduced.