WP_oEmbed::_parse_json()
Parses a json response body.
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. |
WP_oEmbed::_parse_json() WP oEmbed:: parse json code WP 6.5.2
private function _parse_json( $response_body ) { $data = json_decode( trim( $response_body ) ); return ( $data && is_object( $data ) ) ? $data : false; }