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:

Description

Returns the metadata for the custom templates defined by the theme via theme.json.

Related Functions

wp_get_theme_data_template_parts, wp_theme_auto_update_setting_template, wp_get_theme_directory_pattern_slugs, wp_print_media_templates, get_embed_template

Top Google Results

User discussions

wpseek mobile