Code based on Custom Sortable Columns
add_filter('manage_upload_columns', 'size_column_register');
function size_column_register($columns) {
$columns['dimensions'] = 'Dimensions';
return $columns;
}
add_action('manage_media_custom_column', 'size_column_display', 10, 2);
function size_column_display($column_name, $post_id) {
if( 'dimensions' != $column_name || !wp_attachment_is_image($post_id)) return;
list($url, $width, $height) = wp_get_attachment_image_src($post_id, 'full');
echo esc_html("{$width}×{$height}");
}
Related Posts:
- Creating subfolders in the media library
- How to Protect Uploads, if User is not Logged In?
- Add a menu item to WordPress 3.5 Media Manager
- Delete an attachment in the WP media modal window
- Cleanup uploads folder, Media Library db structure
- Media library to list images only user uploaded
- Rendering the uploaded file in a wp.media object
- How do I force WordPress to show most recent version of images in the media library?
- WordPress Media Manager 3.5 – default link to
- Proper way to add a button to the top menu of the media library?
- How to capture the selection:toggle event fired by wp.media
- Changing the media library default tab
- Best plugin to manage media library? [closed]
- Change default tab of media manager
- Restricting access to files within a specific folder [duplicate]
- get total number of images from media using xml-rpc
- Audio Playlist : How to bind events for “track change”, “track end”?
- Images are registered in media library but still won’t show up
- How do I control video media display sizing with native wordpress player
- Upload mobi and epub file in the MEDIA of WP
- Handle lots of images within the media uploader / selector
- Rest API rename media
- Custom media picker in meta box: how to select available image sizes?
- How do I go straight to “Edit More Details” when clicking on an item in the media library?
- WordPress 3.0 Media Upload Directory
- Can’t edit media details in new role
- 3.5 Media Manager – callout in metaboxes
- How to retrieve alt attribute for an attachment (uploaded image)?
- How to bulk Edit Dates in Media Library?
- Add instructions For Media Library Uploads
- Audio file’s length (duration) is missing from Attachment Details in Media Library [closed]
- Media Manager: refresh library after new selection
- Cannot upload anything via wordpress
- Video uploaded with the native media uploader gives Error 404
- Overriding of the template for the Attachment “thumbnails” in the Media Grid isn’t working
- Importing Media IDs but not related attachment
- Allow Editor Role to Edit Media
- Bulk image importing from folders
- how to upload file to media library using link [closed]
- Media Library empty after server move (exact copy of files and db’s)
- WordPress media uploader – upload tabs not hiding
- Media Manager (since 3.5): How to show an empty Media Library when creating a media frame?
- Media Library not showing images but still acknowledges existence
- Too slow Image upload in WordPress Media Library as image number increases
- Remove delete-attachment button for every media
- Use staging media files on development site in WordPress
- How to disable Media Library?
- How to disable (and hide) the Media Library for certain users?
- Attaching images to multiple galleries
- How to re-house images in uploads/YYYY/MM
- Publish / unpublish media items in the media library
- Can’t upload format files on media library
- Media Library modal customization
- How to Protect Uploads, if User is not Logged In?
- Creating multiple instances of Media Uploader
- Handle image file and save it to media
- Insert Link to Audio versus Embed Audio Player
- Can we reuse WordPress drag drop media upload in plugins?
- How can I change the default image behavior?
- Change default ‘file not supported’ error message
- How to create different media uploader frames / filter library depending on a custom action
- Unable to delete images in Media Library
- Organizing the Media Library for Cleanup
- Import of 200+ sermons
- How can I add a Description column to the media library browser screen?
- Pictures won’t display in media library and also won’t show preview when selected
- How to batch-add image file extension without losing DB refs?
- Add link to media files in backend and modify linked images in the frontend
- Looking for a way to insert PDF image preview in TinyMCE
- Gifs displaying soft?
- Disable wordpress gif compression?
- Altered Media Library URLs
- Get the Playlist embedded in Post/Page content
- wordpress doesnt add media.css file
- WP Cli + xargs fails
- Hide download button from audio player
- Insert Media – Attachment – Link to : Remove options
- Import media in bulk with caption and titles?
- Organising and display thousands of photos in media library
- Display Powerpress media url
- Is there a way to limit multi upload in media upload box?
- cant able to upload media to my wordpress blog
- Extra metadata for media items
- Customizing individual images on posts
- Only current gallery images with get_attached_media
- Change image in media library at specific time
- Hook into backbone to add js to wp-admin -> media library?
- Issues with WordPress 3.9.6 media libraries on XAMPP
- Edit image itself
- Insert media while posting is not working with new wordpress update
- Moving wp from a server to another, with different administrator
- Customize WordPress Upload Directory
- wp media popup close all popup
- How to open full Media Editor in a frame
- Elegant way to signify inheritance and relationship between posts
- Media Player gone on front end
- Why does uploading a media file a second time restore older version?
- How to get only current images of a post
- controlling whether upload is attached to post or not
- Custom Link In WordPress Media “Attachment Details” Upload Screen