# get_theme()

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

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

> Устаревший элемент. Помечен устаревшим с версии 3.4.0.

## Сигнатура

```php
get_theme( string $theme ): array|null
```

## Описание

См. alsowp_get_theme()

## Параметры

- `$theme` `string` — обязательный. Имя темы.

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

`array|null`

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

Файл: `wp-includes/deprecated.php:2944`

```php
function get_theme( $theme ) {
	_deprecated_function( __FUNCTION__, '3.4.0', 'wp_get_theme( $stylesheet )' );

	$themes = get_themes();
	if ( is_array( $themes ) && array_key_exists( $theme, $themes ) )
		return $themes[ $theme ];
	return null;
}
```

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

- 3.4.0 — Deprecated. Use wp_get_theme()
- 1.5.0 — Introduced.

## Связанные

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

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