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



rest_route_data › WordPress过滤钩子

Since4.4.0
已弃用n/a
› apply_filters( 'rest_route_data', $available, $routes )
参数: (2)
  • () available Route data to expose in indexes, keyed by route.
    Required: Yes
  • () routes Internal route data as an associative array.
    Required: Yes
定义在:
文档:

Filters the publicly-visible data for REST API routes.

This data is exposed on indexes and can be used by clients or developers to investigate the site and find out how to use it. It acts as a form of self-documentation.




源码

return apply_filters( 'rest_route_data', $available, $routes );