# wp_remote_head()

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

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

## Сигнатура

```php
wp_remote_head( string $url, array $args = array() ): array|WP_Error
```

## Описание

Important: If the URL is user-controlled, use `wp_safe_remote_head()` instead.[See also](#see-also)
- [wp_remote_request()](https://developer.wordpress.org/reference/functions/wp_remote_request/): For more information on the response array format.

- [WP_Http::request()](https://developer.wordpress.org/reference/classes/WP_Http/request/): For default arguments information.

## Параметры

- `$url` `string` — обязательный. URL для получения.
- `$args` `array` — необязательный, по умолчанию `array()`. Request arguments.
  
  See [WP_Http::request()](https://developer.wordpress.org/reference/classes/wp_http/request/) for information on accepted arguments.

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

`array|WP_Error` — WP_Error WP_Http::__TOKEN_1__

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

Файл: `wp-includes/http.php:229`

```php
function wp_remote_head( $url, $args = array() ) {
	$http = _wp_http_get_object();
	return $http->head( $url, $args );
}
```

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

- 2.7.0 — Introduced.

## Связанные

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

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