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



wp_insert_attachment_data › WordPress Filter Hooks

Da6.0.0
Deprecaton/a
› apply_filters( 'wp_insert_attachment_data', $data, $postarr, $unsanitized_postarr, $update )
Parametri: (4)
  • () data An array of slashed, sanitized, and processed attachment post data.
    Richiesto: Sì
  • () postarr An array of slashed and sanitized attachment post data, but not processed.
    Richiesto: Sì
  • () unsanitized_postarr An array of slashed yet *unsanitized* and unprocessed attachment post data as originally passed to wp_insert_post().
    Richiesto: Sì
  • () update Whether this is an existing attachment post being updated.
    Richiesto: Sì
Definito a:
Codex:

Filters attachment post data before it is updated in or added to the database.





Sorgenti

$data = apply_filters( 'wp_insert_attachment_data', $data, $postarr, $unsanitized_postarr, $update );