apply_filters( 'wp_insert_attachment_data', array $data , array $postarr )
Filters attachment post data before it is updated in or added to the database.
Description
Parameters
- $data
-
(array) An array of sanitized attachment post data.
- $postarr
-
(array) An array of unsanitized attachment post data.
Source
File: wp-includes/post.php
Changelog
Version | Description |
---|---|
3.9.0 | Introduced. |