WP_REST_Request::get_body
Retrieves the request body content.
Method of the class: WP_REST_Request{}
No Hooks.
Returns
String. Binary data from the request body.
Usage
$WP_REST_Request = new WP_REST_Request(); $WP_REST_Request->get_body();
Changelog
| Since 4.4.0 | Introduced. |
WP_REST_Request::get_body() WP REST Request::get body code WP 6.9.1
public function get_body() {
return $this->body;
}