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.
Topics
Parameters #
- $namespace_map
-
(<span class="TribeEventsFilterbarViewsV2array">TribeEventsFilterbarViewsV2array) (Required) Indexed array containing the namespace as the key and path to
strpos
.
Return #
(TribeEventsFilterbarViewsV2array<string,string>) Namespace map after adding Pro to the list.
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; }
Changelog #
Version | Description |
---|---|
TBD | Introduced. |