# wp_is_site_url_using_https()

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

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

## Сигнатура

```php
wp_is_site_url_using_https(): bool
```

## Описание

Проверяет URL, по которому доступны файлы приложения WordPress (например, wp-blog-header.php или папка wp-admin/).
См. alsosite_url()

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

`bool`

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

Файл: `wp-includes/https-detection.php:51`

```php
function wp_is_site_url_using_https() {
	/*
	 * Use direct option access for 'siteurl' and manually run the 'site_url'
	 * filter because `site_url()` will adjust the scheme based on what the
	 * current request is using.
	 */
	/** This filter is documented in wp-includes/link-template.php */
	$site_url = apply_filters( 'site_url', get_option( 'siteurl' ), '', null, null );

	return 'https' === wp_parse_url( $site_url, PHP_URL_SCHEME );
}
```

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

- 5.7.0 — Introduced.

## Связанные

Использует: [`wp_parse_url`](https://chugunov.pro/api-wordpress/functions/wp_parse_url/), [`apply_filters`](https://chugunov.pro/api-wordpress/functions/apply_filters/), [`get_option`](https://chugunov.pro/api-wordpress/functions/get_option/).
Используется в: [`wp_is_using_https`](https://chugunov.pro/api-wordpress/functions/wp_is_using_https/), `WP_Site_Health::get_test_https_status`.

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