attachment_id3_data_meta_box

函数


attachment_id3_data_meta_box ( $post )
参数
  • (WP_Post)
    $post
    Current post object.
    Required:
定义位置
  • wp-admin/includes/meta-boxes.php
    , line 1419
引入
3.9.0
弃用

Displays fields for ID3 data.

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 ];
		}
		?>