get_front_page_template

The timeline below displays how wordpress function get_front_page_template has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.1

/**
 * Retrieves 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'.
 *
 * @since 3.0.0
 *
 * @see get_query_template()
 *
 * @return string Full path to front page template file.
 */
function get_front_page_template()
{
    $templates = array('front-page.php');
    return get_query_template('frontpage', $templates);
}

WordPress Version: 5.2

/**
 * 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'.
 *
 * @since 3.0.0
 *
 * @see get_query_template()
 *
 * @return string Full path to front page template file.
 */
function get_front_page_template()
{
    $templates = array('front-page.php');
    return get_query_template('frontpage', $templates);
}

WordPress Version: 4.9

/**
 * 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'.
 *
 * @since 3.0.0
 *
 * @see get_query_template()
 *
 * @return string Full path to front page template file.
 */
function get_front_page_template()
{
    $templates = array('front-page.php');
    return get_query_template('front_page', $templates);
}

WordPress Version: 4.7

/**
 * Retrieve path of front page template in current or parent template.
 *
 * The template hierarchy is filterable via the {@see 'frontpage_template_hierarchy'} hook.
 * The template path is filterable via the {@see 'frontpage_template'} hook.
 *
 * @since 3.0.0
 *
 * @see get_query_template()
 *
 * @return string Full path to front page template file.
 */
function get_front_page_template()
{
    $templates = array('front-page.php');
    return get_query_template('front_page', $templates);
}

WordPress Version: 4.3

/**
 * Retrieve path of front-page template in current or parent template.
 *
 * Looks for 'front-page.php'. The template path is filterable via the
 * dynamic {@see '$type_template'} hook, e.g. 'frontpage_template'.
 *
 * @since 3.0.0
 *
 * @see get_query_template()
 *
 * @return string Full path to front page template file.
 */
function get_front_page_template()
{
    $templates = array('front-page.php');
    return get_query_template('front_page', $templates);
}

WordPress Version: 3.9

/**
 * Retrieve path of front-page template in current or parent template.
 *
 * Looks for 'front-page.php'. The template path is filterable via the
 * 'front_page_template' hook.
 *
 * @since 3.0.0
 *
 * @see get_query_template()
 *
 * @return string Full path to front page template file.
 */
function get_front_page_template()
{
    $templates = array('front-page.php');
    return get_query_template('front_page', $templates);
}

WordPress Version: 3.7

/**
 * Retrieve path of front-page template in current or parent template.
 *
 * Looks for 'front-page.php'.
 *
 * @since 3.0.0
 * @uses apply_filters() Calls 'front_page_template' on file path of template.
 *
 * @return string
 */
function get_front_page_template()
{
    $templates = array('front-page.php');
    return get_query_template('front_page', $templates);
}