wp_remote_get

SummerySummery

Performs an HTTP request using the GET method and returns its response.

Syntax

wp_remote_get( string $url, array $args = array() )

ParametersParameters

$url

(string) (Required) URL to retrieve.

$args

(array) (Optional) Request arguments.

Default value: array()

ReturnReturn

(array|WP_Error) The response or WP_Error on failure.

SourceSource

File: wp-includes/http.php


			

ChangelogChangelog

Changelog
Version Description
2.7.0 Introduced.

See alsoSee also

Scroll to Top