wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



_get_template_edit_filename › WordPress Function

Od2.9.0
Przestarzałyn/a
_get_template_edit_filename ( $fullpath, $containingfolder )
Dostęp:
  • private
Parametry: (2)
  • (string) $fullpath Full path to the theme file
    Wymagane: Tak
  • (string) $containingfolder Path of the theme parent folder
    Wymagane: Tak
Powrót:
  • (string)
Zdefiniowane na:
Codex:

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



Źródło

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