Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_prepare_attachment_for_js ›

Da3.5.0
Deprecaton/a
apply_filters( 'wp_prepare_attachment_for_js', $response, $attachment, $meta )
Parametri: (3)
  • (array) $response Array of prepared attachment data.
    Richiesto:
  • (WP_Post) $attachment Attachment object.
    Richiesto:
  • (array|false) $meta Array of attachment meta data, or false if there is none.
    Richiesto:
Definito a:
Codex:

Filters the attachment data prepared for JavaScript.





Sorgenti

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