wpseek.com
WordPress开发者和主题制作者的搜索引擎



rest_endpoints › WordPress过滤钩子

Since4.4.0
已弃用n/a
› apply_filters( 'rest_endpoints', $endpoints )
参数:
  • () endpoints The available endpoints, as registered and before normalization. An array of matching regex patterns, each mapped either to a single endpoint's arguments or to an array of them, alongside any route options under their own non-numeric keys.
    Required: Yes
定义在:
文档:

Filters the array of available REST API endpoints.





源码

$endpoints = apply_filters( 'rest_endpoints', $endpoints );