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
- Filter for changing MediaElement.js Settings
- Protecting direct access to PDF and ZIP unless user logged in (without plugin)
- How to extend Media Library (WP 4.4)
- Run script after clicking Set Featured Image in Media
- Uploading non-media files?
- Media > Image Sizes aren’t being applied to uploads
- add_image_size landscape or portrait
- What table is the media’s sort order stored?
- Site icons with alpha channel for self-hosted WordPress blog network
- Deleting images from gallery remain as attachment
- Cannot embed YouTube videos “Failed to embed” error
- How to upload media to a specific folder without a plugin in WordPress?
- Searching for any images in media library displays “no media found”
- Can I Change the Media Upload Location for each user?
- How to get file URL from media library
- Media library only shows for admin. Doesn’t show editor or below [closed]
- Redirect to another page using contact form 7? [closed]
- wp.media issue with selected image
- Woocommerce blank screen variable product attribute image thumbnail
- Images missing from the media folder
- wp_delete_attachment doesn’t delete image files / doesn’t work
- Direct media library upload saving in wrong month date folder in custom theme
- Showing added mime types in REST media response
- How to resize image in wordpress from backend? Seems like bug in wordpress
- Moving wp from a server to another, with different administrator
- How to split my uploaded media into directories?
- bulk deleting empty items in the media library
- Using WordPress.com API to retrieve featured images
- Why some images are not allowed to be edited only for thumbnails?
- How to add a column showing real media usage (count) to the media list view?
- upload image to wordpress media library failed for custom post type