Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
WP_oEmbed::_parse_json( string $response_body )
Parses a json response body.
Description Description
Parameters Parameters
- $response_body
-
(string) (Required)
Return Return
(object|false)
Source Source
File: wp-includes/class-wp-oembed.php
private function _parse_json( $response_body ) { $data = json_decode( trim( $response_body ) ); return ( $data && is_object( $data ) ) ? $data : false; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |