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



rest_prepare_theme ›

Since5.0.0
已弃用n/a
apply_filters( 'rest_prepare_theme', $response, $theme, $request )
参数: (3)
  • (WP_REST_Response) $response The response object.
    Required: Yes
  • (WP_Theme) $theme Theme object used to create response.
    Required: Yes
  • (WP_REST_Request) $request Request object.
    Required: Yes
定义在:
文档:

Filters theme data returned from the REST API.





源码

return apply_filters( 'rest_prepare_theme', $response, $theme, $request );