Function: get_oembed_response_data_for_url

get_oembed_response_data_for_url( string $url, array $args )

Retrieves the oEmbed response data for a given URL.

Parameters

Name Type(s) Default Value Description
$url string

The URL that should be inspected for discovery <link> tags.

$args array

oEmbed remote get arguments.

Returns

object | false

oEmbed response data if the URL does belong to the current site. False otherwise.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.