Template_Bootstrap::get_template_object()
Based on the admin template setting we fetch the respective object to handle the inclusion of the main file.
Return
(object)
Source
File: src/Tribe/Views/V2/Template_Bootstrap.php
public function get_template_object() {
$setting = $this->get_template_setting();
return $setting === 'page'
? tribe( Template\Page::class )
: tribe( Template\Event::class );
}
Changelog
| Version | Description |
|---|---|
| 5.0.3 | inverted logic, as all the custom templates are page templates |
| 4.9.2 | Introduced. |