Applied to fields associated with an attachment prior to saving them in the database. Called in the media_upload_form_handler function. Filter function arguments: an array of post attributes, an array of attachment fields including the changes submitted from the form.
This description was scraped automatically from the WordPress filter reference or action reference. If it looks like this is the wrong description, please tell me so I can fix my code.
This database has information for all major versions from WP 1.2.1 through 3.5.
| Version | File | Line | Type | |
|---|---|---|---|---|
| 2.5 | wp-admin/includes/media.php | 226 | View hook in source | filter |
| 2.6 | wp-admin/includes/media.php | 263 | View hook in source | filter |
| 2.7 | wp-admin/includes/media.php | 385 | View hook in source | filter |
| 2.8 | wp-admin/includes/media.php | 407 | View hook in source | filter |
| 2.9 | wp-admin/includes/media.php | 409 | View hook in source | filter |
| 3.0 | wp-admin/includes/media.php | 430 | View hook in source | filter |
| 3.1 | wp-admin/includes/media.php | 436 | View hook in source | filter |
| 3.2 | wp-admin/includes/media.php | 458 | View hook in source | filter |
| 3.3 | wp-admin/includes/media.php | 441 | View hook in source | filter |
| 3.4 | wp-admin/includes/media.php | 450 | View hook in source | filter |
| 3.5 | wp-admin/includes/ajax-actions.php | 1929 | View hook in source | filter |
| 3.5 | wp-admin/includes/media.php | 467 | View hook in source | filter |
| 3.5 | wp-admin/includes/post.php | 239 | View hook in source | filter |
We find related hooks using word stems. attachment_fields_to_save has 4 significant word stem(s): attachment, fields, to, save. Note that some of the hooks below may not appear in all versions of WP.