# stylesheet_directory

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

Тип: хук-фильтр.
Появился в версии: 1.5.0.

## Сигнатура

```php
apply_filters( 'stylesheet_directory', string $stylesheet_dir, string $stylesheet, string $theme_root )
```

## Описание

Фильтрует путь к каталогу таблицы стилей активной темы.

## Параметры

- `$stylesheet_dir` `string` — обязательный. Абсолютный путь к активной теме.
- `$stylesheet` `string` — обязательный. Имя каталога активной темы.
- `$theme_root` `string` — обязательный. Абсолютный путь к каталогу тем.

## Фильтруемое значение

Абсолютный путь к активной теме.

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

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

```php
return apply_filters( 'stylesheet_directory', $stylesheet_dir, $stylesheet, $theme_root );
```

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

- 1.5.0 — Introduced.

## Связанные

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

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