WC_API_JSON_Handler::parse_body()
Parse the raw request body entity
Method of the class: WC_API_JSON_Handler{}
No Hooks.
Return
Array|Mixed
.
Usage
$WC_API_JSON_Handler = new WC_API_JSON_Handler(); $WC_API_JSON_Handler->parse_body( $body );
- $body(string) (required)
- the raw request body
Changelog
Since 2.1 | Introduced. |
WC_API_JSON_Handler::parse_body() WC API JSON Handler::parse body code WC 7.7.0
public function parse_body( $body ) { return json_decode( $body, true ); }