Codex

Function API/wp remote retrieve response code

Contents

Description

Retrieve only the response code from the raw response.

Will return an empty array if incorrect parameter value is given.

Parameters

$response
(array) (required) HTTP response.
Default: None

Return Values

(string) 
the response code. Empty string on incorrect parameter given.

Change Log

Since: 2.7.0

Source File

wp_remote_retrieve_response_code() is located in wp-includes/http.php