WP_REST_Request::get_body()
Retrieves the request body content.
Method of the class: WP_REST_Request{}
No Hooks.
Return
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.4.3
public function get_body() { return $this->body; }