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



rest_prepare_attachment › WordPress Filter Hooks

Seit4.7.0
Veraltetn/v
apply_filters( 'rest_prepare_attachment', $response, $post, $request )
Parameter: (3)
  • () response The response object.
    Erforderlich: Ja
  • () post The original attachment post.
    Erforderlich: Ja
  • () request Request used to generate the response.
    Erforderlich: Ja
Definiert in:
Codex:

Filters an attachment returned from the REST API.

Allows modification of the attachment right before it is returned.




Quellcode

return apply_filters( 'rest_prepare_attachment', $response, $post, $request );