Uses the HEAD HTTP method.
Description
Used for sending data that is expected to be in the body.
Parameters
$url
stringrequired- The request URL.
$args
string|arrayoptional- Override the defaults.
Default:
array()
Source
public function head( $url, $args = array() ) {
$defaults = array( 'method' => 'HEAD' );
$parsed_args = wp_parse_args( $args, $defaults );
return $this->request( $url, $parsed_args );
}
Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.