1. 首页
  2. WordPress 函数手册
  3. rest

rest_get_url_prefix()

rest_get_url_prefix()

检索任何API资源的URL前缀。
Retrieves the URL prefix for any API resource.

目录锚点:#返回#源码


返回(Return)

(string)前缀。


源码(Source)


更新版本 源码位置 使用 被使用
4.4.0 wp-includes/rest-api.php:319 2 2

rest_get_url_prefix() 为WP2原创文章,链接:https://www.wp2.cn/functions/rest_get_url_prefix/