wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_insert_attachment_data › WordPress Filter Hooks

Seit6.0.0
Veraltetn/v
apply_filters( 'wp_insert_attachment_data', $data, $postarr, $unsanitized_postarr, $update )
Parameter: (4)
  • () data An array of slashed, sanitized, and processed attachment post data.
    Erforderlich: Ja
  • () postarr An array of slashed and sanitized attachment post data, but not processed.
    Erforderlich: Ja
  • () unsanitized_postarr An array of slashed yet *unsanitized* and unprocessed attachment post data as originally passed to wp_insert_post().
    Erforderlich: Ja
  • () update Whether this is an existing attachment post being updated.
    Erforderlich: Ja
Definiert in:
Codex:

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





Quellcode

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