Function Reference/wp remote retrieve body
Description
Retrieve only the body from the raw response.
Usage
<?php $body = wp_remote_retrieve_body(&$response); ?>
Parameters
- $response
- (string) (required) HTTP response.
- Default: None
Return Values
- (string)
- The body of the response. Empty string if no body or incorrect parameter given.
Examples
Notes
Change Log
Since: 2.7.0
Source File
wp_remote_retrieve_body() is located in wp-includes/http.php
Related