Core Function
View Source on Trac ↗ wp_get_theme_data_custom_templates()
wp_get_theme_data_custom_templates( ) Returns the metadata for the custom templates defined by the theme via theme.json.
Return Value
(array)
array Associative array of `$template_name => $template_data` pairs,
with `$template_data` having "title" and "postTypes" fields.
Function Information
Since Version
6.4.0
Source File
wp-includes/global-styles-and-settings.php
Advertisement