A WordPress-centric search engine for devs and theme authors



_get_template_edit_filename ›

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 editor.



Source

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