首页 WordPress函数大全 get_oembed_endpoint_url()

get_oembed_endpoint_url()

2020-05-01 / 2392阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

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

Retrieves the oEmbed endpoint URL for a given permalink.

描述

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

参数

$permalink

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

Default value: ''

$format

(string)
(Optional)
The requested response format.

Default value: 'json'

返回

(string) The oEmbed endpoint URL.

大家谈论
    我的见解