get_root_dir() 정적인 공개 메소드

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.
리턴 string
예제 #1
0
 /**
  * @param string $filepath
  * @return string
  */
 function get_root_dir($filepath)
 {
     return WPLib::get_root_dir($filepath, get_class($this));
 }