Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_prepare_attachment_for_js ›

Desde3.5.0
Obsoleton/a
apply_filters( 'wp_prepare_attachment_for_js', $response, $attachment, $meta )
Parâmetros: (3)
  • (array) $response Array of prepared attachment data.
    Required: Yes
  • (WP_Post) $attachment Attachment object.
    Required: Yes
  • (array|false) $meta Array of attachment meta data, or false if there is none.
    Required: Yes
Definido em:
Codex:

Filters the attachment data prepared for JavaScript.





Fonte

return apply_filters( 'wp_prepare_attachment_for_js', $response, $attachment, $meta );