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