default_template_types WordPress Filter Hook

The default_template_types hook is a filter hook that allows for the modification of the default template types. This hook is useful for customizing the default behavior of your Wordpress site.

apply_filters( 'default_template_types', array $default_template_types ) #

Filters the list of template types.


Parameters

$default_template_types

(array)An array of template types, formatted as [ slug => [ title, description ] ].


Top ↑

Source

File: wp-includes/block-template-utils.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.