wpseek.com
A WordPress-centric search engine for devs and theme authors



get_theme_updates › WordPress Function

Since2.9.0
Deprecatedn/a
get_theme_updates ( No parameters )
Returns:
  • (array)
Defined at:
Codex:

Retrieves themes with updates available.



Source

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;
}