get_current_theme()WP 1.5.0

Устарела с версии 3.4.0. Больше не поддерживается и может быть удалена. Используйте wp_get_theme().

Retrieve current theme name.

Хуков нет.

Возвращает

Строку.

Использование

get_current_theme();

Заметки

Список изменений

С версии 1.5.0 Введена.
Устарела с 3.4.0 Use wp_get_theme()

Код get_current_theme() WP 6.4.3

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');
}