# get_current_theme()

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

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

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

## Сигнатура

```php
get_current_theme(): string
```

## Описание

См. alsowp_get_theme()

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

`string`

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

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

```php
function get_current_theme() {
	_deprecated_function( __FUNCTION__, '3.4.0', 'wp_get_theme()' );

	if ( $theme = get_option( 'current_theme' ) )
		return $theme;

	return wp_get_theme()->get('Name');
}
```

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

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

## Связанные

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

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