Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_update_attachment_metadata [ WordPress Function ]

wp_update_attachment_metadata ( $post_id, $data )
Parameters:
  • (int) $post_id Attachment ID.
  • (array) $data Attachment data.
Returns:
  • (int)
Defined at:



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 ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics