get_oembed_endpoint_url

SummerySummery

Retrieves the oEmbed endpoint URL for a given permalink.

Syntax

get_oembed_endpoint_url( string $permalink = '', string $format = 'json' )

DescriptionDescription

Pass an empty string as the first argument to get the endpoint base URL.

ParametersParameters

$permalink

(string) (Optional) The permalink used for the url query arg.

Default value: ''

$format

(string) (Optional) The requested response format.

Default value: 'json'

ReturnReturn

(string) The oEmbed endpoint URL.

SourceSource

File: wp-includes/embed.php


			

ChangelogChangelog

Changelog
Version Description
4.4.0 Introduced.
Scroll to Top