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



_strip_template_file_suffix › WordPress Function

Od5.8.0
Przestarzałyn/a
_strip_template_file_suffix ( $template_file )
Dostęp:
  • private
Parametry:
  • (string) $template_file Template file name.
    Wymagane: Tak
Powrót:
  • (string) Template file name without extension.
Zdefiniowane na:
Codex:

Strips .php or .html suffix from template file names.



Źródło

function _strip_template_file_suffix( $template_file ) {
	return preg_replace( '/\.(php|html)$/', '', $template_file );
}