Function Reference/wp update attachment metadata
Description
Update metadata for an attachment.
Usage
<?php wp_update_attachment_metadata( $post_id, $data ); ?>
Parameters
- $post_id
- (integer) (required) Attachment ID.
- Default: None
- $data
- (array) (required) Attachment data.
- Default: None
Return Values
- (boolean)
- Returns value from update_post_meta()
Notes
- Uses: apply_filters() to add wp_update_attachment_metadata() on $data and post ID.
Change Log
Since: 2.1.0
Source File
wp_update_attachment_metadata() is located in wp-includes/post.php.
Related