wp_update_attachment_metadata
wp_update_attachment_metadata ( $attachment_id, $data )
Parameters:- (int) attachment_id Attachment post ID.
- (array) data Attachment meta data.
Returns:- (int|false) False if $post is invalid.
Defined at: - Introduced in WordPress: 2.1.0
- Deprecated in WordPress: —
Description
Updates metadata for an attachment.