# wp_remote_get()

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

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

## Сигнатура

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

## Описание

Important: If the URL is user-controlled, use `wp_safe_remote_get()` 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:187`

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

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

- 2.7.0 — Introduced.

## Связанные

Использует: [`_wp_http_get_object`](https://chugunov.pro/api-wordpress/functions/_wp_http_get_object/), `WP_Http`.
Используется в: `WP_Debug_Data::get_wp_core`, `WP_Automatic_Updater::has_fatal_error`, `WP_Site_Health::check_for_page_caching`, `WP_REST_Pattern_Directory_Controller::get_items`, [`get_block_editor_theme_styles`](https://chugunov.pro/api-wordpress/functions/get_block_editor_theme_styles/), `WP_Site_Health::wp_cron_scheduled_check`, `WP_Site_Health::get_test_rest_availability`, `WP_Site_Health::get_test_dotorg_communication`, [`wp_check_php_version`](https://chugunov.pro/api-wordpress/functions/wp_check_php_version/), [`wp_edit_theme_plugin_file`](https://chugunov.pro/api-wordpress/functions/wp_edit_theme_plugin_file/), `WP_Community_Events::get_events`, [`wp_install_maybe_enable_pretty_permalinks`](https://chugunov.pro/api-wordpress/functions/wp_install_maybe_enable_pretty_permalinks/), [`network_step2`](https://chugunov.pro/api-wordpress/functions/network_step2/), [`themes_api`](https://chugunov.pro/api-wordpress/functions/themes_api/), [`populate_network`](https://chugunov.pro/api-wordpress/functions/populate_network/), [`get_core_checksums`](https://chugunov.pro/api-wordpress/functions/get_core_checksums/), [`plugins_api`](https://chugunov.pro/api-wordpress/functions/plugins_api/), [`wp_get_popular_importers`](https://chugunov.pro/api-wordpress/functions/wp_get_popular_importers/), [`wp_credits`](https://chugunov.pro/api-wordpress/functions/wp_credits/), [`url_is_accessable_via_ssl`](https://chugunov.pro/api-wordpress/functions/url_is_accessable_via_ssl/).

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