Uses
| Uses | Description |
|---|---|
| wp-includes/theme.php: wp_get_theme() | Gets a WP_Theme object for a theme. |
| wp-includes/option.php: get_site_transient() | Retrieves the value of a site transient. |
(array)
File: wp-admin/includes/update.php
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;
} | Version | Description |
|---|---|
| 2.9.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_theme_updates