WP_HTTP_Response::get_data() WordPress Method
The WP_HTTP_Response::get_data() function is used to get the body of an HTTP response. This can be useful when you need to access the response data without having to go through the entire response object.
WP_HTTP_Response::get_data() #
Retrieves the response data.
Return
(mixed) Response data.
Source
File: wp-includes/class-wp-http-response.php
public function get_data() { return $this->data; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |