Retrieve only the response message from the raw response.
Will return an empty array if incorrect parameter value is given.
Signature
wp_remote_retrieve_response_message( $response )
- response
- (array) HTTP response.
Return
(string) The response message. Empty string on incorrect parameter given.
Source
function wp_remote_retrieve_response_message(&$response) {
if ( is_wp_error($response) || ! isset($response['response']) || ! is_array($response['response']))
return '';
return $response['response']['message'];
}
WP Trac GitHub Bitbucket
Link here
-
URL
http://queryposts.com/function/wp_remote_retrieve_response_message/ -
HTML
<a href='http://queryposts.com/function/wp_remote_retrieve_response_message/'>wp_remote_retrieve_response_message()</a> -
Markdown
[wp_remote_retrieve_response_message()](http://queryposts.com/function/wp_remote_retrieve_response_message/) -
BBCode
[url=http://queryposts.com/function/wp_remote_retrieve_response_message/]wp_remote_retrieve_response_message()[/url]