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



wp_remote_retrieve_headers › WordPress Function

Desde2.7.0
Obsoleton/a
wp_remote_retrieve_headers ( $response )
Parâmetros:
  • (array|WP_Error) $response HTTP response.
    Required: Yes
Ver:
  • WpOrgRequestsUtilityCaseInsensitiveDictionary
Retorna:
  • (WpOrgRequestsUtilityCaseInsensitiveDictionary|array) The headers of the response, or empty array if incorrect parameter given.
Definido em:
Codex:
Log de mudanças:
  • 4.6.0

Retrieve only the headers from the raw response.



Fonte

function wp_remote_retrieve_headers( $response ) {
	if ( is_wp_error( $response ) || ! isset( $response['headers'] ) ) {
		return array();
	}

	return $response['headers'];
}