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



rest_prepare_block_pattern › WordPress过滤钩子

Since5.8.0
已弃用n/a
apply_filters( 'rest_prepare_block_pattern', $response, $raw_pattern, $request )
参数: (3)
  • (WP_REST_Response) $response The response object.
    Required: Yes
  • (object) $raw_pattern The unprepared block pattern.
    Required: Yes
  • (WP_REST_Request) $request The request object.
    Required: Yes
定义在:
文档:

Filters the REST API response for a block pattern.





源码

return apply_filters( 'rest_prepare_block_pattern', $response, $raw_pattern, $request );