attachment_id3_data_meta_box( WP_Post $post )  Displays fields for ID3 data.   Parameters   $post WP_Post Required    Current post object.      Source  File: wp-admin/includes/meta-boxes.php. View all references  function attachment_id3_data_meta_box( $post ) {
	$meta = array();
	if ( ! empty( $post->ID ) ) {
		$meta = wp_get_attachment_metadata( $post->ID );
	}

	foreach ( wp_get_attachment_id3_keys( $post, 'edit' ) as $key => $label ) :
		$value = '';
		if ( ! empty( $meta[ $key ] ) ) {
			$value = $meta[ $key ];
		}
		?>
	<p>
		<label for="title"><?php echo $label; ?></label><br />
		<input type="text" name="id3_<?php echo esc_attr( $key ); ?>" id="id3_<?php echo esc_attr( $key ); ?>" class="large-text" value="<?php echo esc_attr( $value ); ?>" />
	</p>
		<?php
	endforeach;
}
   Related  Uses    Uses Description      wp_get_attachment_metadata() wp-includes/post.php   Retrieves attachment metadata for attachment ID.     wp_get_attachment_id3_keys() wp-includes/media.php   Returns useful keys to use to lookup data from an attachment’s stored metadata.     esc_attr() wp-includes/formatting.php   Escaping for HTML attributes.   
    Changelog    Version Description     3.9.0 Introduced.    

    
{'path': 'public/docs/wordpress/functions/attachment_id3_data_meta_box.html', 'source': 'DevDocs.IO'}