wpseek.com
A WordPress-centric search engine for devs and theme authors



_get_template_edit_filename › WordPress Function

Since2.9.0
Deprecatedn/a
_get_template_edit_filename ( $fullpath, $containingfolder )
Access:
  • private
Parameters: (2)
  • (string) $fullpath Full path to the theme file
    Required: Yes
  • (string) $containingfolder Path of the theme parent folder
    Required: Yes
Returns:
  • (string)
Defined at:
Codex:

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



Source

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