WP_oEmbed::_parse_json() private WP 3.0.0
Parses a json response body.
{} It's a method of the class: WP_oEmbed{}
No Hooks.
Return
Object/false.
Usage
// private - for code of main (parent) class only $result = $this->_parse_json( $response_body );
- $response_body(string) (required)
Changelog
Since 3.0.0 | Introduced. |
Code of WP_oEmbed::_parse_json() WP oEmbed:: parse json WP 5.6
private function _parse_json( $response_body ) {
$data = json_decode( trim( $response_body ) );
return ( $data && is_object( $data ) ) ? $data : false;
}