WP_REST_Request::get_body() WordPress Method
The WP_REST_Request::get_body() method is used to retrieve the request body.
WP_REST_Request::get_body() #
Retrieves the request body content.
Return
(string) Binary data from the request body.
Source
File: wp-includes/rest-api/class-wp-rest-request.php
public function get_body() {
return $this->body;
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |