This plugin provides an additional sortable column in the wp-admin Posts screen that allows you to sort the posts by total size of all attachments. If your post has 10 images attached, the number shown will be the total file size of all 10 images added together. This is useful for WordPress websites with a lot of photo galleries.
[pas_display_post_size post_id=false single=false return="both"]
post_id
= The post ID (if single = true
then use the attachment ID) [OPTIONAL]single
= Set to true
if you only want the size of ONE attachment (MUST set the post_id
to the attachment ID if this is true)return
= Default both
: returns both the raw byte size of the file AND the formatted value.
byte
to return JUST the byte value.formatted
to return JUST the formatted file size