Uses
Uses | Description |
---|---|
wp-includes/class-http.php: WP_Http::request() | Send an HTTP request to a URI. |
wp-includes/functions.php: wp_parse_args() | Merge user defined arguments into defaults array. |
Uses the HEAD HTTP method.
Used for sending data that is expected to be in the body.
(string) (Required) The request URL.
(string|array) (Optional) Override the defaults.
Default value: array()
(array|WP_Error) Array containing 'headers', 'body', 'response', 'cookies', 'filename'. A WP_Error instance upon error.
File: wp-includes/class-http.php
public function head( $url, $args = array() ) { $defaults = array( 'method' => 'HEAD' ); $parsed_args = wp_parse_args( $args, $defaults ); return $this->request( $url, $parsed_args ); }
Version | Description |
---|---|
2.7.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_http/head