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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: