Tribe__Autoloader::add_fallback_dir( string $dir )

Adds a folder to search for classes that were not found among the prefixed ones.

This is the method to use to register a directory of deprecated classes.


Parameters

$dir

(string) (Required) An absolute path dto a dir.


Top ↑

Source

File: src/Tribe/Autoloader.php

			public function add_fallback_dir( $dir ) {
				if ( in_array( $dir, $this->fallback_dirs ) ) {
					return;
				}
				$this->fallback_dirs[] = $this->normalize_root_dir( $dir );
			}