Template_Bootstrap::filter_template_include( string $template )
Filters the template_include filter to return the Views router template if required.
Contents
.
Parameters
- $template
-
(string) (Required) The template located by WordPress.
Return
(string) Path to the File that initializes the template
Source
File: src/Tribe/Views/V2/Template_Bootstrap.php
public function filter_template_include( $template ) {
// Determine if we should load bootstrap or bail.
if ( ! $this->should_load() ) {
return $template;
}
return $this->get_template_object()->get_path();
}
Changelog
| Version | Description |
|---|---|
| 4.9.2 | Introduced. |