Tribe__Events__Community__Main::getTemplatePath( string $path, string $file )
Get a file’s path.
Contents
Parameters
- $file
-
(string) (Required) The file.
- $path
-
(string) (Required) The path.
Return
(string) The file's path.
Source
File: src/Tribe/Main.php
public static function getTemplatePath( $path, $file ) { _deprecated_function( __FUNCTION__, '2.1', 'Tribe__Events__Community__Templates::getTemplateHierarchy()' ); // protect duplicate call to views $template_path = $path == 'views' ? '' : $path; return Tribe__Events__Templates::getTemplateHierarchy( $file, array( 'subfolder' => $path, 'namespace' => 'community', 'plugin_path' => self::instance()->pluginPath, ) ); }
Changelog
Version | Description |
---|---|
1.0 | Introduced. |