Linux 软件免费装
Banner图

Image Sizes in Admin Dashboard

开发者 mansoormunib
更新时间 2026年6月9日 11:53
PHP版本: 8.0 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

dashboard media image sizes thumbnails add_image_size

下载

2.0.0

详情介绍:

Image Sizes in Admin Dashboard adds a read-only widget to the WordPress admin Dashboard that lists all currently registered image sizes. Any size you register in your theme or plugin with add_image_size() is picked up automatically, alongside the built-in thumbnail, medium, medium_large and large sizes. Each row shows: This is handy when building a theme and you need a quick reference of the exact dimensions available to the_post_thumbnail() and the media library. More detail on registering custom image sizes: https://developer.wordpress.org/reference/functions/add_image_size/

安装:

  1. Upload the image-sizes-in-admin-dashboard folder to your /wp-content/plugins/ directory.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Open Dashboard in wp-admin — the Image Sizes widget appears for administrators.

升级注意事项:

2.0.0 Modernized for WordPress 6.5+ and PHP 8.0+. Output escaping, capability checks and i18n added.

常见问题:

Who can see the widget?

Only users with the manage_options capability (administrators by default).

My custom size is not listed

Make sure add_image_size() runs on the after_setup_theme or init hook in your theme or plugin so the size is registered before the Dashboard loads.

Does this work on Multisite?

The widget renders on each site's Dashboard. To show it on the Network Admin Dashboard, hook the registration to wp_network_dashboard_setup instead of wp_dashboard_setup.

更新日志:

2.0.0 1.0.0