_get_template_edit_filename() – Tidies a filename for url display by the theme editor.
You appear to be a bot. Output may be restricted
Description
Tidies a filename for url display by the theme file editor.
Usage
$string = _get_template_edit_filename( $fullpath, $containingfolder );
Parameters
- $fullpath
- ( string ) required – Full path to the theme file
- $containingfolder
- ( string ) required – Path of the theme parent folder
Returns
string
Source
File name: wordpress/wp-admin/includes/theme.php
Lines:
1 to 3 of 3
function _get_template_edit_filename( $fullpath, $containingfolder ) { return str_replace( dirname( dirname( $containingfolder ) ), '', $fullpath ); }