wp_get_theme_data_custom_templates
wp_get_theme_data_custom_templates ( No parameters )
Returns:- (array) Associative array of `$template_name => $template_data` pairs, with `$template_data` having "title" and "postTypes" fields.
Defined at: - Introduced in WordPress: 6.4.0
- Deprecated in WordPress: —
Description
Returns the metadata for the custom templates defined by the theme via theme.json.