Template::get_context()
Returns the current template context.
Return
(Tribe__Context) The template context instance, or the global context if no context is set.
Source
File: src/Tribe/Views/V2/Template.php
public function get_context() {
return $this->context instanceof \Tribe__Context ? $this->context : tribe_context();
}
Changelog
| Version | Description |
|---|---|
| 5.0.0 | Introduced. |