wp_update_attachment_metadata [ WordPress Function ]
wp_update_attachment_metadata ( $post_id, $data )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Soorgelijke functies: wp_generate_attachment_metadata, wp_get_attachment_metadata, update_comment_meta, wp_get_attachment_image, wp_delete_attachment
Update metadata for an attachment.
Source
<?php
function wp_update_attachment_metadata( $post_id, $data ) {
$post_id = (int) $post_id;
if ( !$post =& get_post( $post_id ) )
return false;
$data = apply_filters( 'wp_update_attachment_metadata', $data, $post->ID );
return update_post_meta( $post->ID, '_wp_attachment_metadata', $data);
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- Function Reference/wp update attachment metadata « WordPress ...
Function Reference/wp update attachment metadata ... Usage. <?php wp_update_attachment_metadata( $post_id, $data ); ?> ...
codex.wordpress.org - WordPress › Support » wp_update_attachment_metadata not ...
I am trying to update an image attachment post and I've finally got it working to replace the image but wp_update_attachment_metadata does not create the ...
wordpress.org - wp_update_attachment_metadata Wordpress hook details -- Adam ...
Applied to the attachment metadata just before saving in the wp_update_attachment_metadata function. Filter function arguments: meta data, attachment ID.
adambrown.info - Golden Apples Design | Front-end file uploads in Wordpress
Jul 3, 2010 ... The functions in lines 12 and 13, wp_generate_attachment_metadata() and wp_update_attachment_metadata() , set the attachment's ...
goldenapplesdesign.com
Gebruikersdiscussies [ wordpress.org ]
- Austin Passy on "Extracting EXIF and inserting into taxonomy"
- Austin Passy on "Extracting EXIF and inserting into taxonomy"
- Austin Passy on "Empty METADATA for a received image using TweetPress API"
- Austin Passy on "Extracting EXIF and inserting into taxonomy"
- Austin Passy on "Extracting EXIF and inserting into taxonomy"
- ma9ma on "Empty METADATA for a received image using TweetPress API"
- ma9ma on "Empty METADATA for a received image using TweetPress API"
- Michael Fields on "How to manually generate thumbnails?"
- alkafy on "How to manually generate thumbnails?"
- alkafy on "How to manually generate thumbnails?"