get_oembed_endpoint_url
get_oembed_endpoint_url ( $permalink = '', $format = 'json' )
Parameters:- (string) permalink Optional. The permalink used for the `url` query arg. Default empty.
- (string) format Optional. The requested response format. Default 'json'.
Returns:- (string) The oEmbed endpoint URL.
Defined at: - Introduced in WordPress: 4.4.0
- Deprecated in WordPress: —
Description
Retrieves the oEmbed endpoint URL for a given permalink.Pass an empty string as the first argument to get the endpoint base URL.