Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

_get_template_edit_filename( string $fullpath, string $containingfolder )

Tidies a filename for url display by the theme editor.


Parameters Parameters

$fullpath

(string) (Required) Full path to the theme file

$containingfolder

(string) (Required) Path of the theme parent folder


Top ↑

Return Return

(string)


Top ↑

Source Source

File: wp-admin/includes/theme.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.9.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.