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



get_front_page_template ›

Desde3.0.0
Obsoleton/a
get_front_page_template ( Sem parâmetros )
Ver:
Retorna:
  • (string) Full path to front page template file.
Definido em:
Codex:

Retrieve path of front page 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 'frontpage'.



Fonte

function get_front_page_template() {
	$templates = array( 'front-page.php' );

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