W3cubDocs

/WordPress

apply_filters( 'attachment_fields_to_save', array $post, array $attachment )

Filters the attachment fields to be saved.

Description

See also

Parameters

$post

(array) An array of post data.

$attachment

(array) An array of attachment metadata.

Source

File: wp-admin/includes/media.php

View on Trac

Changelog

Version Description
2.5.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/attachment_fields_to_save