_get_template_edit_filename

函数


_get_template_edit_filename ( $fullpath, $containingfolder )
Access
Private
参数
  • (string)
    $fullpath
    Full path to the theme file
    Required:
  • (string)
    $containingfolder
    Path of the theme parent folder
    Required:
返回值
  • (string)
定义位置
  • wp-admin/includes/theme.php
    , line 158
引入
2.9.0
弃用

为主题文件编辑器显示的网址整理一个文件名。

function _get_template_edit_filename( $fullpath, $containingfolder ) {
	return str_replace( dirname( dirname( $containingfolder ) ), '', $fullpath );
}