Welcome, visitor! Log in
 

WordPress hook directory
attachment_fields_to_save

Description

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.

WordPress version history for attachment_fields_to_save

This database has information for all major versions from WP 1.2.1 through 3.8.

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
3.6 wp-admin/includes/ajax-actions.php 1914 View hook in source filter
3.6 wp-admin/includes/media.php 517 View hook in source filter
3.6 wp-admin/includes/post.php 265 View hook in source filter
3.7 wp-admin/includes/ajax-actions.php 2006 View hook in source filter
3.7 wp-admin/includes/media.php 517 View hook in source filter
3.7 wp-admin/includes/post.php 274 View hook in source filter
3.8 wp-admin/includes/ajax-actions.php 2002 View hook in source filter
3.8 wp-admin/includes/media.php 517 View hook in source filter
3.8 wp-admin/includes/post.php 274 View hook in source filter

Related Hooks

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.