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



rest_json_encode_options › WordPress过滤钩子

Since6.1.0
已弃用n/a
› apply_filters( 'rest_json_encode_options', $options, $request )
参数: (2)
  • () options JSON encoding options {@see \json_encode()}.
    Required: Yes
  • () request Current request object.
    Required: Yes
定义在:
文档:

Filters the JSON encoding options used to send the REST API response.





源码

return apply_filters( 'rest_json_encode_options', $options, $request );