WordPress at Your Fingertips
function is not described

_get_template_edit_filename() WP 2.9.0

Tidies a filename for url display by the theme editor.

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

No Hooks.

Return

String.

Usage

_get_template_edit_filename( $fullpath, $containingfolder );
$fullpath(string) (required)
Full path to the theme file
$containingfolder(string) (required)
Path of the theme parent folder

Changelog

Since 2.9.0 Introduced.

Code of _get_template_edit_filename() WP 5.8.2

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