get_root_url() static public method

Get the root URL for a given Lib/Site/App/Module/Theme.
static public get_root_url ( string $filepath, boolean | string $class_name = false ) : string
$filepath string Name of path to append to root URL.
$class_name boolean | string Name of class to return the root dir.
return string
Beispiel #1
0
 /**
  * @param string $filepath
  * @return string
  */
 function get_root_url($filepath)
 {
     return WPLib::get_root_url($filepath, get_class($this));
 }