wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



_get_template_edit_filename › WordPress Function

Desde2.9.0
Obsoleton/a
_get_template_edit_filename ( $fullpath, $containingfolder )
Acesso:
  • private
Parâmetros: (2)
  • (string) $fullpath Full path to the theme file
    Required: Yes
  • (string) $containingfolder Path of the theme parent folder
    Required: Yes
Retorna:
  • (string)
Definido em:
Codex:

Tidies a filename for url display by the theme file editor.



Fonte

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