Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




_get_template_edit_filename [ WordPress Function ]

_get_template_edit_filename ( $fullpath, $containingfolder )
Access:
  • private
Parameters:
  • (string) $fullpath Full path to the theme file
  • (string) $containingfolder Path of the theme parent folder
Returns:
  • (string)
Defined at:



Tidies a filename for url display by the theme editor.

Source


<?php
function _get_template_edit_filename($fullpath$containingfolder) {
    return 
str_replace(dirname(dirname$containingfolder )) , ''$fullpath);
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics