
使用PHP中的组件实现GraphQL服务器
get_site_allowed_themes ( No parameters )
get_site_allowed_themes: 这个函数检索一个特定站点的允许主题数组。它需要一个参数:网站的ID。它返回一个字符串形式的允许主题的数组。
获得支持网络的主题的功能已经过时。
function get_site_allowed_themes() { _deprecated_function( __FUNCTION__, '3.4.0', 'WP_Theme::get_allowed_on_network()' ); return array_map( 'intval', WP_Theme::get_allowed_on_network() ); }