Template_Bootstrap::filter_template_include( string $template )

Filters the template_include filter to return the Views router template if required.

.


Parameters

$template

(string) (Required) The template located by WordPress.


Top ↑

Return

(string) Path to the File that initializes the template


Top ↑

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

Top ↑

Changelog

Changelog
Version Description
4.9.2 Introduced.