wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



rest_prepare_attachment › Filtr WordPress Hooks

Od4.7.0
Przestarzałyn/a
› apply_filters( 'rest_prepare_attachment', $response, $post, $request )
Parametry: (3)
  • () response The response object.
    Wymagane: Tak
  • () post The original attachment post.
    Wymagane: Tak
  • () request Request used to generate the response.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters an attachment returned from the REST API.

Allows modification of the attachment right before it is returned.




Źródło

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