A WordPress-centric search engine for devs and theme authors



get_front_page_template ›

Since3.0.0
Deprecatedn/a
get_front_page_template ( No parameters )
See:
Returns:
  • (string) Full path to front page template file.
Defined at:
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'.



Source

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

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