# get_theme_support()

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

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

## Сигнатура

```php
get_theme_support( string $feature, mixed $args ): mixed
```

## Описание

Пример использования:
get_theme_support( 'custom-logo' );
get_theme_support( 'custom-header', 'width' );

## Параметры

- `$feature` `string` — обязательный. Возможность для проверки. Список возможных значений см. в add_theme_support().
- `$args` `mixed` — необязательный. Необязательные дополнительные аргументы для проверки применительно к определённым возможностям.

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

`mixed`

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

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

```php
function get_theme_support( $feature, ...$args ) {
	global $_wp_theme_features;

	if ( ! isset( $_wp_theme_features[ $feature ] ) ) {
		return false;
	}

	if ( ! $args ) {
		return $_wp_theme_features[ $feature ];
	}

	switch ( $feature ) {
		case 'custom-logo':
		case 'custom-header':
		case 'custom-background':
			return $_wp_theme_features[ $feature ][0][ $args[0] ] ?? false;

		default:
			return $_wp_theme_features[ $feature ];
	}
}
```

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

- 5.3.0 — Formalized the existing and already documented ...$args parameter by adding it to the function signature.
- 3.1.0 — Introduced.

## Связанные

Используется в: [`wp_enqueue_admin_bar_bump_styles`](https://chugunov.pro/api-wordpress/functions/wp_enqueue_admin_bar_bump_styles/), [`get_classic_theme_supports_block_editor_settings`](https://chugunov.pro/api-wordpress/functions/get_classic_theme_supports_block_editor_settings/), [`_load_remote_featured_patterns`](https://chugunov.pro/api-wordpress/functions/_load_remote_featured_patterns/), [`_load_remote_block_patterns`](https://chugunov.pro/api-wordpress/functions/_load_remote_block_patterns/), [`get_default_block_editor_settings`](https://chugunov.pro/api-wordpress/functions/get_default_block_editor_settings/), [`wp_use_widgets_block_editor`](https://chugunov.pro/api-wordpress/functions/wp_use_widgets_block_editor/), [`get_media_states`](https://chugunov.pro/api-wordpress/functions/get_media_states/), [`_register_core_block_patterns_and_categories`](https://chugunov.pro/api-wordpress/functions/_register_core_block_patterns_and_categories/), `WP_REST_Themes_Controller::prepare_item_for_response`, [`get_theme_starter_content`](https://chugunov.pro/api-wordpress/functions/get_theme_starter_content/), [`is_header_video_active`](https://chugunov.pro/api-wordpress/functions/is_header_video_active/), [`_custom_logo_header_styles`](https://chugunov.pro/api-wordpress/functions/_custom_logo_header_styles/), [`get_custom_logo`](https://chugunov.pro/api-wordpress/functions/get_custom_logo/), `WP_Customize_Background_Image_Control::enqueue`, [`post_format_meta_box`](https://chugunov.pro/api-wordpress/functions/post_format_meta_box/), `WP_Posts_List_Table::inline_edit`, `Custom_Image_Header::get_header_dimensions`, `Custom_Image_Header::get_default_header_images`, `Custom_Image_Header::step_1`, `Custom_Image_Header::step_2`, `Custom_Image_Header::reset_header_image`, `Custom_Image_Header::js_1`, `Custom_Image_Header::js_2`, `Custom_Background::admin_page`, `WP_Customize_Manager::register_controls`, `WP_Customize_Manager::_sanitize_header_textcolor`, [`get_background_color`](https://chugunov.pro/api-wordpress/functions/get_background_color/), [`_custom_background_cb`](https://chugunov.pro/api-wordpress/functions/_custom_background_cb/), [`add_theme_support`](https://chugunov.pro/api-wordpress/functions/add_theme_support/), [`_custom_header_background_just_in_time`](https://chugunov.pro/api-wordpress/functions/_custom_header_background_just_in_time/), [`_remove_theme_support`](https://chugunov.pro/api-wordpress/functions/_remove_theme_support/), [`get_header_textcolor`](https://chugunov.pro/api-wordpress/functions/get_header_textcolor/), [`display_header_text`](https://chugunov.pro/api-wordpress/functions/display_header_text/), [`get_header_image`](https://chugunov.pro/api-wordpress/functions/get_header_image/), [`is_random_header_image`](https://chugunov.pro/api-wordpress/functions/is_random_header_image/), [`get_custom_header`](https://chugunov.pro/api-wordpress/functions/get_custom_header/), [`get_background_image`](https://chugunov.pro/api-wordpress/functions/get_background_image/), `WP_Admin_Bar::initialize`, `WP_Customize_Header_Image_Setting::update`, [`get_body_class`](https://chugunov.pro/api-wordpress/functions/get_body_class/).

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