# get_stylesheet()

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

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

## Сигнатура

```php
get_stylesheet(): string
```

## Описание

Имя темы, которая в данный момент установлена как тема публичной части сайта.
В большинстве случаев имя шаблона и имя таблицы стилей будут одинаковыми.

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

`string`

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

Файл: `wp-includes/theme.php:181`

```php
function get_stylesheet() {
	/**
	 * Filters the name of current stylesheet.
	 *
	 * @since 1.5.0
	 *
	 * @param string $stylesheet Name of the current stylesheet.
	 */
	return apply_filters( 'stylesheet', get_option( 'stylesheet' ) );
}
```

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

- 1.5.0 — Introduced.

## Связанные

Использует: [`apply_filters`](https://chugunov.pro/api-wordpress/functions/apply_filters/), [`get_option`](https://chugunov.pro/api-wordpress/functions/get_option/).
Используется в: `WP_Block_Templates_Registry::register`, [`_build_block_template_object_from_post_object`](https://chugunov.pro/api-wordpress/functions/_build_block_template_object_from_post_object/), [`_inject_theme_attribute_in_template_part_block`](https://chugunov.pro/api-wordpress/functions/_inject_theme_attribute_in_template_part_block/), [`get_block_asset_url`](https://chugunov.pro/api-wordpress/functions/get_block_asset_url/), [`wp_theme_has_theme_json`](https://chugunov.pro/api-wordpress/functions/wp_theme_has_theme_json/), `WP_REST_Global_Styles_Controller::get_theme_items`, `WP_REST_Global_Styles_Controller::get_theme_item`, `WP_REST_Edit_Site_Export_Controller::export`, [`wp_set_unique_slug_on_create_template_part`](https://chugunov.pro/api-wordpress/functions/wp_set_unique_slug_on_create_template_part/), [`wp_generate_block_templates_export_file`](https://chugunov.pro/api-wordpress/functions/wp_generate_block_templates_export_file/), [`get_block_file_template`](https://chugunov.pro/api-wordpress/functions/get_block_file_template/), [`block_template_part`](https://chugunov.pro/api-wordpress/functions/block_template_part/), [`_build_block_template_result_from_file`](https://chugunov.pro/api-wordpress/functions/_build_block_template_result_from_file/), [`_inject_theme_attribute_in_block_template_content`](https://chugunov.pro/api-wordpress/functions/_inject_theme_attribute_in_block_template_content/), [`_get_block_template_file`](https://chugunov.pro/api-wordpress/functions/_get_block_template_file/), [`_get_block_templates_files`](https://chugunov.pro/api-wordpress/functions/_get_block_templates_files/), `WP_REST_Templates_Controller::prepare_item_for_database`, [`wp_filter_wp_template_unique_post_slug`](https://chugunov.pro/api-wordpress/functions/wp_filter_wp_template_unique_post_slug/), [`get_the_block_template_html`](https://chugunov.pro/api-wordpress/functions/get_the_block_template_html/), [`get_block_templates`](https://chugunov.pro/api-wordpress/functions/get_block_templates/), [`is_theme_paused`](https://chugunov.pro/api-wordpress/functions/is_theme_paused/), [`wp_edit_theme_plugin_file`](https://chugunov.pro/api-wordpress/functions/wp_edit_theme_plugin_file/), [`wp_update_custom_css_post`](https://chugunov.pro/api-wordpress/functions/wp_update_custom_css_post/), [`wp_get_custom_css_post`](https://chugunov.pro/api-wordpress/functions/wp_get_custom_css_post/), [`wp_get_custom_css`](https://chugunov.pro/api-wordpress/functions/wp_get_custom_css/), `Custom_Background::ajax_background_add`, `Theme_Upgrader::current_before`, `Theme_Upgrader::current_after`, `Theme_Upgrader::bulk_upgrade`, [`wp_prepare_themes_for_js`](https://chugunov.pro/api-wordpress/functions/wp_prepare_themes_for_js/), `Theme_Upgrader_Skin::after`, `Custom_Image_Header::ajax_header_add`, `Custom_Image_Header::ajax_header_remove`, `Custom_Image_Header::customize_set_last_used`, `Custom_Image_Header::get_uploaded_header_images`, `Custom_Image_Header::set_header_image`, `WP_Customize_Manager::register_controls`, `WP_Customize_Manager::__construct`, [`validate_current_theme`](https://chugunov.pro/api-wordpress/functions/validate_current_theme/), [`get_stylesheet_directory`](https://chugunov.pro/api-wordpress/functions/get_stylesheet_directory/).

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