WPDev.one
Core Function
View Source on Trac ↗

get_oembed_endpoint_url()

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

Retrieves the oEmbed endpoint URL for a given permalink.

Parameters 0 required

Name / Type Description
$permalink
string

Optional. The permalink used for the `url` query arg. Default empty.

$format
string

Optional. The requested response format. Default 'json'.

Return Value

(string)
The oEmbed endpoint URL.

Function Information

Since Version
4.4.0
Source File
wp-includes/embed.php
Advertisement