get_root_dir() static public method

Return the root directory of the Lib/App/Site/Module/Theme class for a given class name.
static public get_root_dir ( string $filepath, boolean | string $class_name = false ) : string
$filepath string Name of path to append to root dir.
$class_name boolean | string Name of class to return the source dir.
return string
Ejemplo n.º 1
0
 /**
  * @param string $filepath
  * @return string
  */
 function get_root_dir($filepath)
 {
     return WPLib::get_root_dir($filepath, get_class($this));
 }