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



rest_route_data ›

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

Filters the publicly-visible data for 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 );