WP_oEmbed_Controller::get_item

SummerySummery

Callback for the embed API endpoint.

Syntax

WP_oEmbed_Controller::get_item( WP_REST_Request $request )

DescriptionDescription

Returns the JSON object for the post.

ParametersParameters

$request

(WP_REST_Request) (Required) Full data about the request.

ReturnReturn

(array|WP_Error) oEmbed response data or WP_Error on failure.

SourceSource

File: wp-includes/class-wp-oembed-controller.php


			

ChangelogChangelog

Changelog
Version Description
4.4.0 Introduced.
Scroll to Top