get_default_block_template_types

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

WordPress Version: 6.5

/**
 * Returns a filtered list of default template types, containing their
 * localized titles and descriptions.
 *
 * @since 5.9.0
 *
 * @return array[] The default template types.
 */
function get_default_block_template_types()
{
    $default_template_types = array('index' => array('title' => _x('Index', 'Template name'), 'description' => __('Used as a fallback template for all pages when a more specific template is not defined.')), 'home' => array('title' => _x('Blog Home', 'Template name'), 'description' => __('Displays the latest posts as either the site homepage or as the "Posts page" as defined under reading settings. If it exists, the Front Page template overrides this template when posts are shown on the homepage.')), 'front-page' => array('title' => _x('Front Page', 'Template name'), 'description' => __('Displays your site\'s homepage, whether it is set to display latest posts or a static page. The Front Page template takes precedence over all templates.')), 'singular' => array('title' => _x('Single Entries', 'Template name'), 'description' => __('Displays any single entry, such as a post or a page. This template will serve as a fallback when a more specific template (e.g. Single Post, Page, or Attachment) cannot be found.')), 'single' => array('title' => _x('Single Posts', 'Template name'), 'description' => __('Displays a single post on your website unless a custom template has been applied to that post or a dedicated template exists.')), 'page' => array('title' => _x('Pages', 'Template name'), 'description' => __('Displays a static page unless a custom template has been applied to that page or a dedicated template exists.')), 'archive' => array('title' => _x('All Archives', 'Template name'), 'description' => __('Displays any archive, including posts by a single author, category, tag, taxonomy, custom post type, and date. This template will serve as a fallback when more specific templates (e.g. Category or Tag) cannot be found.')), 'author' => array('title' => _x('Author Archives', 'Template name'), 'description' => __('Displays a single author\'s post archive. This template will serve as a fallback when a more specific template (e.g. Author: Admin) cannot be found.')), 'category' => array('title' => _x('Category Archives', 'Template name'), 'description' => __('Displays a post category archive. This template will serve as a fallback when a more specific template (e.g. Category: Recipes) cannot be found.')), 'taxonomy' => array('title' => _x('Taxonomy', 'Template name'), 'description' => __('Displays a custom taxonomy archive. Like categories and tags, taxonomies have terms which you use to classify things. For example: a taxonomy named "Art" can have multiple terms, such as "Modern" and "18th Century." This template will serve as a fallback when a more specific template (e.g. Taxonomy: Art) cannot be found.')), 'date' => array('title' => _x('Date Archives', 'Template name'), 'description' => __('Displays a post archive when a specific date is visited (e.g., example.com/2023/).')), 'tag' => array('title' => _x('Tag Archives', 'Template name'), 'description' => __('Displays a post tag archive. This template will serve as a fallback when a more specific template (e.g. Tag: Pizza) cannot be found.')), 'attachment' => array('title' => __('Attachment Pages'), 'description' => __('Displays when a visitor views the dedicated page that exists for any media attachment.')), 'search' => array('title' => _x('Search Results', 'Template name'), 'description' => __('Displays when a visitor performs a search on your website.')), 'privacy-policy' => array('title' => __('Privacy Policy'), 'description' => __('Displays your site\'s Privacy Policy page.')), '404' => array('title' => _x('Page: 404', 'Template name'), 'description' => __('Displays when a visitor views a non-existent page, such as a dead link or a mistyped URL.')));
    /**
     * Filters the list of default template types.
     *
     * @since 5.9.0
     *
     * @param array[] $default_template_types An array of template types, formatted as [ slug => [ title, description ] ].
     */
    return apply_filters('default_template_types', $default_template_types);
}

WordPress Version: 6.3

/**
 * Returns a filtered list of default template types, containing their
 * localized titles and descriptions.
 *
 * @since 5.9.0
 *
 * @return array[] The default template types.
 */
function get_default_block_template_types()
{
    $default_template_types = array('index' => array('title' => _x('Index', 'Template name'), 'description' => __('Used as a fallback template for all pages when a more specific template is not defined.')), 'home' => array('title' => _x('Blog Home', 'Template name'), 'description' => __('Displays the latest posts as either the site homepage or as the "Posts page" as defined under reading settings. If it exists, the Front Page template overrides this template when posts are shown on the homepage.')), 'front-page' => array('title' => _x('Front Page', 'Template name'), 'description' => __('Displays your site\'s homepage, whether it is set to display latest posts or a static page. The Front Page template takes precedence over all templates.')), 'singular' => array('title' => _x('Single Entries', 'Template name'), 'description' => __('Displays any single entry, such as a post or a page. This template will serve as a fallback when a more specific template (e.g. Single Post, Page, or Attachment) cannot be found.')), 'single' => array('title' => _x('Single Posts', 'Template name'), 'description' => __('Displays single posts on your website unless a custom template has been applied to that post or a dedicated template exists.')), 'page' => array('title' => _x('Pages', 'Template name'), 'description' => __('Display all static pages unless a custom template has been applied or a dedicated template exists.')), 'archive' => array('title' => _x('All Archives', 'Template name'), 'description' => __('Displays any archive, including posts by a single author, category, tag, taxonomy, custom post type, and date. This template will serve as a fallback when more specific templates (e.g. Category or Tag) cannot be found.')), 'author' => array('title' => _x('Author Archives', 'Template name'), 'description' => __('Displays a single author\'s post archive. This template will serve as a fallback when a more specific template (e.g. Author: Admin) cannot be found.')), 'category' => array('title' => _x('Category Archives', 'Template name'), 'description' => __('Displays a post category archive. This template will serve as a fallback when a more specific template (e.g. Category: Recipes) cannot be found.')), 'taxonomy' => array('title' => _x('Taxonomy', 'Template name'), 'description' => __('Displays a custom taxonomy archive. Like categories and tags, taxonomies have terms which you use to classify things. For example: a taxonomy named "Art" can have multiple terms, such as "Modern" and "18th Century." This template will serve as a fallback when a more specific template (e.g. Taxonomy: Art) cannot be found.')), 'date' => array('title' => _x('Date Archives', 'Template name'), 'description' => __('Displays a post archive when a specific date is visited (e.g., example.com/2023/).')), 'tag' => array('title' => _x('Tag Archives', 'Template name'), 'description' => __('Displays a post tag archive. This template will serve as a fallback when a more specific template (e.g. Tag: Pizza) cannot be found.')), 'attachment' => array('title' => __('Attachment Pages'), 'description' => __('Displays when a visitor views the dedicated page that exists for any media attachment.')), 'search' => array('title' => _x('Search Results', 'Template name'), 'description' => __('Displays when a visitor performs a search on your website.')), 'privacy-policy' => array('title' => __('Privacy Policy'), 'description' => __('Displays your site\'s Privacy Policy page.')), '404' => array('title' => _x('Page: 404', 'Template name'), 'description' => __('Displays when a visitor views a non-existent page, such as a dead link or a mistyped URL.')));
    /**
     * Filters the list of template types.
     *
     * @since 5.9.0
     *
     * @param array[] $default_template_types An array of template types, formatted as [ slug => [ title, description ] ].
     */
    return apply_filters('default_template_types', $default_template_types);
}

WordPress Version: 6.2

/**
 * Returns a filtered list of default template types, containing their
 * localized titles and descriptions.
 *
 * @since 5.9.0
 *
 * @return array The default template types.
 */
function get_default_block_template_types()
{
    $default_template_types = array('index' => array('title' => _x('Index', 'Template name'), 'description' => __('Used as a fallback template for all pages when a more specific template is not defined.')), 'home' => array('title' => _x('Home', 'Template name'), 'description' => __('Displays the latest posts as either the site homepage or a custom page defined under reading settings. If it exists, the Front Page template overrides this template when posts are shown on the front page.')), 'front-page' => array('title' => _x('Front Page', 'Template name'), 'description' => __('Displays your site\'s front page, whether it is set to display latest posts or a static page. The Front Page template takes precedence over all templates.')), 'singular' => array('title' => _x('Singular', 'Template name'), 'description' => __('Displays any single entry, such as a post or a page. This template will serve as a fallback when a more specific template (e.g., Single Post, Page, or Attachment) cannot be found.')), 'single' => array('title' => _x('Single', 'Template name'), 'description' => __('Displays single posts on your website unless a custom template has been applied to that post or a dedicated template exists.')), 'page' => array('title' => _x('Page', 'Template name'), 'description' => __('Display all static pages unless a custom template has been applied or a dedicated template exists.')), 'archive' => array('title' => _x('Archive', 'Template name'), 'description' => __('Displays any archive, including posts by a single author, category, tag, taxonomy, custom post type, and date. This template will serve as a fallback when more specific templates (e.g., Category or Tag) cannot be found.')), 'author' => array('title' => _x('Author', 'Template name'), 'description' => __('Displays a single author\'s post archive. This template will serve as a fallback when a more specific template (e.g., Author: Admin) cannot be found.')), 'category' => array('title' => _x('Category', 'Template name'), 'description' => __('Displays a post category archive. This template will serve as a fallback when a more specific template (e.g., Category: Recipes) cannot be found.')), 'taxonomy' => array('title' => _x('Taxonomy', 'Template name'), 'description' => __('Displays a custom taxonomy archive. Like categories and tags, taxonomies have terms which you use to classify things. For example: a taxonomy named "Art" can have multiple terms, such as "Modern" and "18th Century." This template will serve as a fallback when a more specific template (e.g, Taxonomy: Art) cannot be found.')), 'date' => array('title' => _x('Date', 'Template name'), 'description' => __('Displays a post archive when a specific date is visited (e.g., example.com/2023/).')), 'tag' => array('title' => _x('Tag', 'Template name'), 'description' => __('Displays a post tag archive. This template will serve as a fallback when a more specific template (e.g., Tag: Pizza) cannot be found.')), 'attachment' => array('title' => __('Media'), 'description' => __('Displays when a visitor views the dedicated page that exists for any media attachment.')), 'search' => array('title' => _x('Search', 'Template name'), 'description' => __('Displays when a visitor performs a search on your website.')), 'privacy-policy' => array('title' => __('Privacy Policy'), 'description' => __('Displays your site\'s Privacy Policy page.')), '404' => array('title' => _x('404', 'Template name'), 'description' => __('Displays when a visitor views a non-existent page, such as a dead link or a mistyped URL.')));
    /**
     * Filters the list of template types.
     *
     * @since 5.9.0
     *
     * @param array $default_template_types An array of template types, formatted as [ slug => [ title, description ] ].
     */
    return apply_filters('default_template_types', $default_template_types);
}

WordPress Version: 6.1

/**
 * Returns a filtered list of default template types, containing their
 * localized titles and descriptions.
 *
 * @since 5.9.0
 *
 * @return array The default template types.
 */
function get_default_block_template_types()
{
    $default_template_types = array('index' => array('title' => _x('Index', 'Template name'), 'description' => __('Displays posts.')), 'home' => array('title' => _x('Home', 'Template name'), 'description' => __('Displays posts on the homepage, or on the Posts page if a static homepage is set.')), 'front-page' => array('title' => _x('Front Page', 'Template name'), 'description' => __('Displays the homepage.')), 'singular' => array('title' => _x('Singular', 'Template name'), 'description' => __('Displays a single post or page.')), 'single' => array('title' => _x('Single', 'Template name'), 'description' => __('The default template for displaying any single post or attachment.')), 'page' => array('title' => _x('Page', 'Template name'), 'description' => __('Displays a single page.')), 'archive' => array('title' => _x('Archive', 'Template name'), 'description' => __('Displays post categories, tags, and other archives.')), 'author' => array('title' => _x('Author', 'Template name'), 'description' => __('Displays latest posts written by a single author.')), 'category' => array('title' => _x('Category', 'Template name'), 'description' => __('Displays latest posts from a single post category.')), 'taxonomy' => array('title' => _x('Taxonomy', 'Template name'), 'description' => __('Displays latest posts from a single post taxonomy.')), 'date' => array('title' => _x('Date', 'Template name'), 'description' => __('Displays posts from a specific date.')), 'tag' => array('title' => _x('Tag', 'Template name'), 'description' => __('Displays latest posts with a single post tag.')), 'attachment' => array('title' => __('Media'), 'description' => __('Displays individual media items or attachments.')), 'search' => array('title' => _x('Search', 'Template name'), 'description' => __('Displays search results.')), 'privacy-policy' => array('title' => __('Privacy Policy'), 'description' => __('Displays the privacy policy page.')), '404' => array('title' => _x('404', 'Template name'), 'description' => __('Displays when no content is found.')));
    /**
     * Filters the list of template types.
     *
     * @since 5.9.0
     *
     * @param array $default_template_types An array of template types, formatted as [ slug => [ title, description ] ].
     */
    return apply_filters('default_template_types', $default_template_types);
}

WordPress Version: 5.9

/**
 * Returns a filtered list of default template types, containing their
 * localized titles and descriptions.
 *
 * @since 5.9.0
 *
 * @return array The default template types.
 */
function get_default_block_template_types()
{
    $default_template_types = array('index' => array('title' => _x('Index', 'Template name'), 'description' => __('Displays posts.')), 'home' => array('title' => _x('Home', 'Template name'), 'description' => __('Displays as the site\'s home page, or as the Posts page when a static home page isn\'t set.')), 'front-page' => array('title' => _x('Front Page', 'Template name'), 'description' => __('Displays as the site\'s home page.')), 'singular' => array('title' => _x('Singular', 'Template name'), 'description' => __('Displays a single post or page.')), 'single' => array('title' => _x('Single Post', 'Template name'), 'description' => __('Displays a single post.')), 'page' => array('title' => _x('Page', 'Template name'), 'description' => __('Displays a single page.')), 'archive' => array('title' => _x('Archive', 'Template name'), 'description' => __('Displays post categories, tags, and other archives.')), 'author' => array('title' => _x('Author', 'Template name'), 'description' => __('Displays latest posts written by a single author.')), 'category' => array('title' => _x('Category', 'Template name'), 'description' => __('Displays latest posts in single post category.')), 'taxonomy' => array('title' => _x('Taxonomy', 'Template name'), 'description' => __('Displays latest posts from a single post taxonomy.')), 'date' => array('title' => _x('Date', 'Template name'), 'description' => __('Displays posts from a specific date.')), 'tag' => array('title' => _x('Tag', 'Template name'), 'description' => __('Displays latest posts with single post tag.')), 'attachment' => array('title' => __('Media'), 'description' => __('Displays individual media items or attachments.')), 'search' => array('title' => _x('Search', 'Template name'), 'description' => __('Template used to display search results.')), 'privacy-policy' => array('title' => __('Privacy Policy'), 'description' => __('Displays the privacy policy page.')), '404' => array('title' => _x('404', 'Template name'), 'description' => __('Displays when no content is found.')));
    /**
     * Filters the list of template types.
     *
     * @since 5.9.0
     *
     * @param array $default_template_types An array of template types, formatted as [ slug => [ title, description ] ].
     */
    return apply_filters('default_template_types', $default_template_types);
}