W3cubDocs

/WordPress

apply_filters( ‘default_template_types’, array[] $default_template_types )

Filters the list of default template types.

Parameters

$default_template_typesarray[]
The default template types.
  • ...$0 array
    Data for the template type.
    • title string
      Template type title.
    • description string
      Template type description.

    Source

    return apply_filters( 'default_template_types', $default_template_types );
    

    Changelog

    Version Description
    5.9.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/default_template_types