# get_theme_updates()

URL: https://chugunov.pro/api-wordpress/functions/get_theme_updates/
Проверено на WordPress 6.9, обновлено 06.08.2026.
Источник: независимый русскоязычный справочник chugunov.pro. Не является официальной документацией WordPress.

Тип: функция.
Появился в версии: 2.9.0.

## Сигнатура

```php
get_theme_updates(): array<string,
```

## Описание

Получает темы, для которых доступны обновления.

## Возвращаемое значение

`array<string,` — WP_Theme

## Исходный код

Файл: `wp-admin/includes/update.php:629`

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

## История изменений

- 2.9.0 — Introduced.

## Связанные

Использует: [`wp_get_theme`](https://chugunov.pro/api-wordpress/functions/wp_get_theme/), `WP_Theme`, [`get_site_transient`](https://chugunov.pro/api-wordpress/functions/get_site_transient/).
Используется в: `WP_Debug_Data::get_wp_active_theme`, `WP_Debug_Data::get_wp_parent_theme`, `WP_Debug_Data::get_wp_themes_inactive`, `WP_Site_Health::get_test_theme_version`, `WP_Automatic_Updater::send_email`, [`list_theme_updates`](https://chugunov.pro/api-wordpress/functions/list_theme_updates/).

Оригинал в официальной документации: https://developer.wordpress.org/reference/functions/get_theme_updates/
