wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



rest_json_encode_options › WordPress Filter Hooks

Seit6.1.0
Veraltetn/v
apply_filters( 'rest_json_encode_options', $options, $request )
Parameter: (2)
  • () options JSON encoding options {@see \json_encode()}.
    Erforderlich: Ja
  • () request Current request object.
    Erforderlich: Ja
Definiert in:
Codex:

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





Quellcode

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