wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_get_theme_data_custom_templates › WordPress Function

Since6.4.0
已弃用n/a
wp_get_theme_data_custom_templates ( 没有参数 )
返回:
  • (array) Associative array of `$template_name => $template_data` pairs, with `$template_data` having "title" and "postTypes" fields.
定义在:
文档:

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



源码

function wp_get_theme_data_custom_templates() {
	return WP_Theme_JSON_Resolver::get_theme_data( array(), array( 'with_supports' => false ) )->get_custom_templates();
}