wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_remote_head › WordPress Function

Desde2.7.0
Obsoleton/a
› wp_remote_head ( $url, $args = array() )
Parâmetros: (2)
  • (string) $url URL to retrieve.
    Required: Yes
  • (array) $args Optional. Request arguments. Default empty array. See WP_Http::request() for information on accepted arguments.
    Required: No
    Padrão: array()
Ver:
Retorna:
  • (array|WP_Error) The response or WP_Error on failure.
    See WP_Http::request() for information on return value.
Definido em:
Codex:

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

Important: If the URL is user-controlled, use wp_safe_remote_head() instead.


Fonte

function wp_remote_head( $url, $args = array() ) {
	$http = _wp_http_get_object();
	return $http->head( $url, $args );
}