Advertisements

wp_remote_retrieve_body

Definition:
function wp_remote_retrieve_body(&$response) {}

Retrieve only the body from the raw response.

Parameters

  • array $response: HTTP response.
  • &$response

Return values

returns:The body of the response. Empty string if no body or incorrect parameter given.

Source code

function wp_remote_retrieve_body(&$response) {

	if ( is_wp_error($response) || ! isset($response['body']) )

		return '';



	return $response['body'];

}

4043

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: