wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



rest_prepare_attachment › WordPress Filter Hooks

Da4.7.0
Deprecaton/a
› apply_filters( 'rest_prepare_attachment', $response, $post, $request )
Parametri: (3)
  • () response The response object.
    Richiesto: Sì
  • () post The original attachment post.
    Richiesto: Sì
  • () request Request used to generate the response.
    Richiesto: Sì
Definito a:
Codex:

Filters an attachment returned from the REST API.

Allows modification of the attachment right before it is returned.




Sorgenti

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