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



get_home_template › WordPress Function

Desde1.5.0
Obsoleton/a
get_home_template ( Sem parâmetros )
Ver:
Retorna:
  • (string) Full path to home template file.
Definido em:
Codex:

Retrieves path of home template in current or parent template.

The template hierarchy and template path are filterable via the {@see '$type_template_hierarchy'} and {@see '$type_template'} dynamic hooks, where $type is 'home'.


Fonte

function get_home_template() {
	$templates = array( 'home.php', 'index.php' );

	return get_query_template( 'home', $templates );
}