检索WordPress主题功能列表(也称为主题标签)

原型

install_themes_feature_list()

返回值

(array)  

源文件

路径:wp-admin/includes/theme-install.php

<?php
...
function install_themes_feature_list() {
	_deprecated_function( __FUNCTION__, '3.1.0', 'get_theme_feature_list()' );
	if ( !$cache = get_transient( 'wporg_theme_feature_list' ) )
		set_transient( 'wporg_theme_feature_list', array(), 3 * HOUR_IN_SECONDS );
	if ( $cache )
		return $cache;
	$feature_list = themes_api( 'feature_list', array() );
	if ( is_wp_error( $feature_list ) )
		return array();
	set_transient( 'wporg_theme_feature_list', $feature_list, 3 * HOUR_IN_SECONDS );
	return $feature_list;
}
...
?>

其他

英文文档:https://developer.wordpress.org/reference/functions/install_themes_feature_list/