# wp_theme_update_rows()

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

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

## Сигнатура

```php
wp_theme_update_rows()
```

## Описание

Добавляет функцию обратного вызова для отображения информации об обновлении тем, для которых доступны обновления.

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

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

```php
function wp_theme_update_rows() {
	if ( ! current_user_can( 'update_themes' ) ) {
		return;
	}

	$themes = get_site_transient( 'update_themes' );

	if ( isset( $themes->response ) && is_array( $themes->response ) ) {
		$themes = array_keys( $themes->response );

		foreach ( $themes as $theme ) {
			add_action( "after_theme_row_{$theme}", 'wp_theme_update_row', 10, 2 );
		}
	}
}
```

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

- 3.1.0 — Introduced.

## Связанные

Использует: [`current_user_can`](https://chugunov.pro/api-wordpress/functions/current_user_can/), [`add_action`](https://chugunov.pro/api-wordpress/functions/add_action/), [`get_site_transient`](https://chugunov.pro/api-wordpress/functions/get_site_transient/).

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