Core Function
View Source on Trac ↗ wp_update_attachment_metadata()
wp_update_attachment_metadata( mixed $attachment_id, mixed $data ) Updates metadata for an attachment.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $attachment_id int | Attachment post ID. Required |
| $data array | Attachment meta data. Required |
Return Value
((int)
| false) False if $post is invalid.
Function Information
Since Version
2.1.0
Source File
wp-includes/post.php
Advertisement