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



rest_namespace_index ›

Since4.4.0
已弃用n/a
apply_filters( 'rest_namespace_index', $response, $request )
参数: (2)
  • (WP_REST_Response) $response Response data.
    Required: Yes
  • (WP_REST_Request) $request Request data. The namespace is passed as the 'namespace' parameter.
    Required: Yes
定义在:
文档:

Filters the namespace index data.

This typically is just the route data for the namespace, but you can add any data you'd like here.





源码

return apply_filters( 'rest_namespace_index', $response, $request );