# get_stylesheet_directory_uri()

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

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

## Сигнатура

```php
get_stylesheet_directory_uri(): string
```

## Описание

Возвращает URI каталога таблицы стилей активной темы.

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

`string`

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

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

```php
function get_stylesheet_directory_uri() {
	$stylesheet         = str_replace( '%2F', '/', rawurlencode( get_stylesheet() ) );
	$theme_root_uri     = get_theme_root_uri( $stylesheet );
	$stylesheet_dir_uri = "$theme_root_uri/$stylesheet";

	/**
	 * Filters the stylesheet directory URI.
	 *
	 * @since 1.5.0
	 *
	 * @param string $stylesheet_dir_uri Stylesheet directory URI.
	 * @param string $stylesheet         Name of the activated theme's directory.
	 * @param string $theme_root_uri     Themes root URI.
	 */
	return apply_filters( 'stylesheet_directory_uri', $stylesheet_dir_uri, $stylesheet, $theme_root_uri );
}
```

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

- 1.5.0 — Introduced.

## Связанные

Использует: [`get_theme_root_uri`](https://chugunov.pro/api-wordpress/functions/get_theme_root_uri/), [`get_stylesheet`](https://chugunov.pro/api-wordpress/functions/get_stylesheet/), [`apply_filters`](https://chugunov.pro/api-wordpress/functions/apply_filters/).
Используется в: `WP_URL_Pattern_Prefixer::get_default_contexts`, `WP_REST_Themes_Controller::prepare_item_for_response`, [`get_theme_file_uri`](https://chugunov.pro/api-wordpress/functions/get_theme_file_uri/), [`get_editor_stylesheets`](https://chugunov.pro/api-wordpress/functions/get_editor_stylesheets/), `Custom_Image_Header::get_default_header_images`, `Custom_Image_Header::step_1`, `Custom_Image_Header::reset_header_image`, `Custom_Image_Header::process_default_headers`, `WP_Customize_Manager::register_controls`, [`_get_random_header_data`](https://chugunov.pro/api-wordpress/functions/_get_random_header_data/), [`get_custom_header`](https://chugunov.pro/api-wordpress/functions/get_custom_header/), [`get_theme_mod`](https://chugunov.pro/api-wordpress/functions/get_theme_mod/), [`get_stylesheet_uri`](https://chugunov.pro/api-wordpress/functions/get_stylesheet_uri/), [`get_locale_stylesheet_uri`](https://chugunov.pro/api-wordpress/functions/get_locale_stylesheet_uri/), [`get_bloginfo`](https://chugunov.pro/api-wordpress/functions/get_bloginfo/).

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