[WordPress] 外掛分享: Image Sizes in Admin Dashboard

首頁外掛目錄 › Image Sizes in Admin Dashboard
WordPress 外掛 Image Sizes in Admin Dashboard 的封面圖片
10+
安裝啟用
★★★★★
5/5 分(2 則評價)
8 天前
最後更新
問題解決
WordPress 6.5+ PHP 8.0+ v2.0.0 上架:2013-11-06

內容簡介

如果您想定義自己的自訂圖像大小,請在 function.php 檔案中使用 add_image_size() 函式。這些圖像大小將顯示在管理儀錶板中。
有關如何添加自定義圖像大小的詳細信息,可以在此處找到: https://codex.wordpress.org/Function_Reference/add_image_size。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Image Sizes in Admin Dashboard」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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:

The image size name (human readable)
Width in pixels (— when unconstrained)
Height in pixels (— when unconstrained)
Crop mode (Cropped or Proportional)

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/

延伸相關外掛

文章
Filter
Apply Filters
Mastodon