Add fields to Attachment Details
-
Hi,
Is there any way to add more fields to Attachment details inside the media uploader? Seems pretty closed off and there are no hooks inside:
wp-includes/media.php, line 1600
<h3><?php _e('Attachment Details'); ?></h3> <div class="attachment-info"> <div class="thumbnail"> <# if ( data.uploading ) { #> <div class="media-progress-bar"><div></div></div> <# } else if ( 'image' === data.type ) { #> <img src="{{ data.size.url }}" draggable="false" /> <# } else { #> <img src="{{ data.icon }}" class="icon" draggable="false" /> <# } #> </div> <div class="details"> <div class="filename">{{ data.filename }}</div> <div class="uploaded">{{ data.dateFormatted }}</div> <# if ( 'image' === data.type && ! data.uploading ) { #> <div class="dimensions">{{ data.width }} × {{ data.height }}</div> <# } #> </div> <div class="compat-meta"> <# if ( data.compat && data.compat.meta ) { #> {{{ data.compat.meta }}} <# } #> </div> </div>
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
The topic ‘Add fields to Attachment Details’ is closed to new replies.