Tribe__Autoloader::get_class_path( string $class )

Gets the absolute path to a class file.


Parameters

$class

(string) (Required) The class name


Top ↑

Return

(string) Either the absolute path to the class file or an empty string if the file was not found.


Top ↑

Source

File: src/Tribe/Autoloader.php

			public function get_class_path( $class ) {
				$prefixed_path = $this->get_prefixed_path( $class );
				if ( $prefixed_path ) {
					return $prefixed_path;
				}

				$class_path = ! empty( $this->class_paths[ $class ] ) ? $this->class_paths[ $class ] :false;
				if ( $class_path ) {
					return $class_path;
				}

				$fallback_path = $this->get_fallback_path( $class );

				return $fallback_path ? $fallback_path : '';
			}