wpseek.com
WordPress开发者和主题制作者的搜索引擎



_get_template_edit_filename › WordPress Function

Since2.9.0
已弃用n/a
_get_template_edit_filename ( $fullpath, $containingfolder )
访问:
  • private
参数: (2)
  • (string) $fullpath Full path to the theme file
    Required: Yes
  • (string) $containingfolder Path of the theme parent folder
    Required: Yes
返回:
  • (string)
定义在:
文档:

Tidies a filename for url display by the theme file editor.



源码

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