Hooks::filter_add_template_origin_namespace( TribeEventsFilterbarViewsV2_1array $namespace_map )

Includes Filter Bar into the path namespace mapping, allowing for a better namespacing when loading files.


Parameters

$namespace_map

(<span class="TribeEventsFilterbarViewsV2_1array">TribeEventsFilterbarViewsV2_1array) (Required) Indexed array containing the namespace as the key and path to strpos.


Top ↑

Return

(TribeEventsFilterbarViewsV2_1array<string,string>) Namespace map after adding Pro to the list.


Top ↑

Source

File: src/Tribe/Views/V2_1/Hooks.php

	public function filter_add_template_origin_namespace( $namespace_map ) {
		$main                                       = Main::instance();
		$namespace_map[ $main->template_namespace ] = $main->pluginPath;

		return $namespace_map;
	}

Top ↑

Changelog

Changelog
Version Description
5.0.0 Introduced.