wp_remote_retrieve_body

Advertisement

Summery Summery

Retrieve only the body from the raw response.

Syntax Syntax

wp_remote_retrieve_body( array|WP_Error $response )

Parameters Parameters

$response

(Required) HTTP response.

Return Return

(string) The body of the response. Empty string if no body or incorrect parameter given.

Source Source

File: wp-includes/http.php

		return '';
	}

	return $response['body'];
}

/**

Advertisement

Changelog Changelog

Changelog
Version Description
2.7.0 Introduced.

Advertisement

Leave a Reply