Tribe__Events__Community__Main::getTemplatePath( string $path, string $file )

Get a file’s path.


Parameters

$file

(string) (Required) The file.

$path

(string) (Required) The path.


Top ↑

Return

(string) The file's path.


Top ↑

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

Top ↑

Changelog

Changelog
Version Description
1.0 Introduced.