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() WordPress Method

The WP_oEmbed::_parse_json() method is used to parse the JSON response from an oEmbed provider and return the result. This method is used internally by the WP_oEmbed class and is not intended to be called directly.

WP_oEmbed::_parse_json( string $response_body ) #

Parses a json response body.


Parameters

$response_body

(string)(Required)


Top ↑

Return

(object|false)


Top ↑

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;
	}

Top ↑

Changelog

Changelog
VersionDescription
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.