Path_Processor::find_directory_with_autoloader( string $file, array $directories_to_check )

Given a file and an array of places it might be, this will find the absolute path and return it.


Description Description


Parameters Parameters

$file

(Required) The plugin or theme file to resolve.

$directories_to_check

(Required) The directories we should check for the file if it isn't an absolute path.


Top ↑

Return Return

(string|false) Returns the absolute path to the directory, otherwise false.


Top ↑

Source Source

File: vendor/automattic/jetpack-autoloader/src/class-path-processor.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.