A WordPress-centric search engine for devs and theme authors



wp_insert_attachment_data ›

Since3.9.0
Deprecatedn/a
apply_filters( 'wp_insert_attachment_data', $data, $postarr )
Parameters: (2)
  • (array) $data An array of sanitized attachment post data.
    Required: Yes
  • (array) $postarr An array of unsanitized attachment post data.
    Required: Yes
Defined at:
Codex:

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





Source

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