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



get_theme_updates ›

Sincen/a
已弃用n/a
get_theme_updates ( 没有参数 )
返回:
  • (array)
定义在:
文档:

暂无描述



源码

function get_theme_updates() {
	$current = get_site_transient( 'update_themes' );

	if ( ! isset( $current->response ) ) {
		return array();
	}

	$update_themes = array();
	foreach ( $current->response as $stylesheet => $data ) {
		$update_themes[ $stylesheet ]         = wp_get_theme( $stylesheet );
		$update_themes[ $stylesheet ]->update = $data;
	}

	return $update_themes;
}