get_asset_url() static public method

Return the asset path
static public get_asset_url ( string $asset_path, boolean | string $class_name = false ) : string
$asset_path string
$class_name boolean | string Name of class to return the root dir.
return string
コード例 #1
0
ファイル: class-theme-base.php プロジェクト: wpscholar/wplib
 /**
  * @param string $filepath
  * @return string
  */
 function get_asset_url($filepath)
 {
     return WPLib::get_asset_url($filepath, get_called_class());
 }