get_theme_updates

Definition:
function get_theme_updates() {}

Source code

function get_theme_updates() {

	$themes = get_themes();

	$current = get_site_transient('update_themes');

	$update_themes = array();



	foreach ( $themes as $theme ) {

		$theme = (object) $theme;

		if ( isset($current->response[ $theme->Stylesheet ]) ) {

			$update_themes[$theme->Stylesheet] = $theme;

			$update_themes[$theme->Stylesheet]->update = $current->response[ $theme->Stylesheet ];

		}

	}



	return $update_themes;

}

1779

No comments yet... Be the first to leave a reply!

Leave a comment