# is_child_theme()

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

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

## Сигнатура

```php
is_child_theme(): bool
```

## Описание

Используется ли дочерняя тема.

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

`bool`

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

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

```php
function is_child_theme() {
	global $wp_stylesheet_path, $wp_template_path;

	return $wp_stylesheet_path !== $wp_template_path;
}
```

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

- 6.5.0 — Makes use of global template variables.
- 3.0.0 — Introduced.

## Связанные

Используется в: [`get_block_asset_url`](https://chugunov.pro/api-wordpress/functions/get_block_asset_url/), `WP_Site_Health::get_test_theme_version`, [`wp_get_active_and_valid_themes`](https://chugunov.pro/api-wordpress/functions/wp_get_active_and_valid_themes/), `WP_Customize_Manager::prepare_starter_content_attachments`, [`get_editor_stylesheets`](https://chugunov.pro/api-wordpress/functions/get_editor_stylesheets/), [`validate_current_theme`](https://chugunov.pro/api-wordpress/functions/validate_current_theme/), [`locate_template`](https://chugunov.pro/api-wordpress/functions/locate_template/), [`get_body_class`](https://chugunov.pro/api-wordpress/functions/get_body_class/).

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