Hooks::filter_add_template_origin_namespace( TribeEventsFilterbarViewsV2array $namespace_map )

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

Parameters #


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

Top ↑

Return #

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

Top ↑

Source #

File: src/Tribe/Views/V2/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 #

Version Description
TBD Introduced.