Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

wp_remote_request()

3 tags 1 category

wp_remote_request() — Performs an HTTP request and returns its response. There are other API functions available which abstract away the HTTP method: Default ‘GET’ for wp_remote_get() Default ‘POST’ for wp_remote_post() Default ‘HEAD’ for wp_remote_head() Important: If the URL is user-controlled, use wp_safe_remote_request() instead.

Inputs: $url (string): URL to retrieve. $args (array): Optional. Request arguments. Default empty array. See WP_Http::request() for information on accepted arguments.

Returns array|WP_Error: The response array or a WP_Error on failure. See WP_Http::request() for information on return value.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…