Tidies a filename for url display by the theme file editor.
Parameters
$fullpath
stringrequired- Full path to the theme file
$containingfolder
stringrequired- Path of the theme parent folder
Source
function _get_template_edit_filename( $fullpath, $containingfolder ) {
return str_replace( dirname( $containingfolder, 2 ), '', $fullpath );
}
Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.