wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



rest_prepare_attachment › Les Filtres WordPress

Depuis4.7.0
Dépréciéen/a
› apply_filters( 'rest_prepare_attachment', $response, $post, $request )
Paramètres: (3)
  • () response The response object.
    Requis: Oui
  • () post The original attachment post.
    Requis: Oui
  • () request Request used to generate the response.
    Requis: Oui
Défini(e) dans:
Codex:

Filters an attachment returned from the REST API.

Allows modification of the attachment right before it is returned.




Source

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