wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



_strip_template_file_suffix › WordPress Function

Da5.8.0
Deprecaton/a
_strip_template_file_suffix ( $template_file )
Accedi:
  • private
Parametri:
  • (string) $template_file Template file name.
    Richiesto:
Ritorna:
  • (string) Template file name without extension.
Definito a:
Codex:

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



Sorgenti

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