WP_oEmbed::_parse_json( string $response_body ): object|false

In this article

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.

Parses a json response body.

Parameters

$response_bodystringrequired

Return

object|false

Source

private function _parse_json( $response_body ) {
	$data = json_decode( trim( $response_body ) );

	return ( $data && is_object( $data ) ) ? $data : false;
}

Changelog

VersionDescription
3.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.