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



wp_insert_attachment_data › Filtr WordPress Hooks

Od6.0.0
Przestarzałyn/a
› apply_filters( 'wp_insert_attachment_data', $data, $postarr, $unsanitized_postarr, $update )
Parametry: (4)
  • () data An array of slashed, sanitized, and processed attachment post data.
    Wymagane: Tak
  • () postarr An array of slashed and sanitized attachment post data, but not processed.
    Wymagane: Tak
  • () unsanitized_postarr An array of slashed yet *unsanitized* and unprocessed attachment post data as originally passed to wp_insert_post().
    Wymagane: Tak
  • () update Whether this is an existing attachment post being updated.
    Wymagane: Tak
Zdefiniowane na:
Codex:

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





Źródło

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