wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



_get_template_edit_filename › WordPress Function

Depuis2.9.0
Dépréciéen/a
_get_template_edit_filename ( $fullpath, $containingfolder )
Accès:
  • private
Paramètres: (2)
  • (string) $fullpath Full path to the theme file
    Requis: Oui
  • (string) $containingfolder Path of the theme parent folder
    Requis: Oui
Retourne:
  • (string)
Défini(e) dans:
Codex:

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



Source

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