andW ImageNameLabel

plugin banner

Displays image filenames or alt text in the block editor's List View for core/image blocks.

Author:yasuo3o3 (profile at wordpress.org)
WordPress version required:6.0
WordPress version tested:6.9
Plugin version:1.1.0
Added to WordPress repository:12-12-2025
Last updated:12-12-2025
Rating, %:0
Rated by:0
Plugin URI:https://github.com/yasuo3o3/andw-imagenamelab...
Total downloads:100
plugin download
Click to start download

This plugin replaces the label of core/image blocks in the block editor’s List View with the image’s alt text or filename.

Key Features:

  • Displays alt text if available
  • Shows filename (including extension) from URL when alt is empty
  • Automatically truncates long filenames (18+ characters): first 3 + “…” + last 8 + extension
  • Adds image ID for duplicate filename identification
  • Display format: “Image filename.ext #123” (plain text only)

Characteristics:

  • Lightweight implementation without build process (PHP + vanilla JavaScript)
  • Works only in editor (no frontend impact)
  • Follows WordPress Coding Standards

日本語説明

ブロックエディタのリストビューにおいて、core/image ブロックのラベルを画像の alt テキストまたはファイル名で差し替えます。

主な機能:

  • alt テキストが設定されている場合は alt を表示
  • alt が空の場合は URL からファイル名(拡張子含む)を取得して表示
  • 18文字以上のファイル名は自動で短縮(先頭3文字 + “…” + 末尾8文字 + 拡張子)
  • 重複ファイル名の識別のため画像IDを表示
  • 表示形式: 「画像 ファイル名.拡張子 #123」(プレーンテキストのみ)

特徴:

  • ビルド不要の軽量実装(PHP + 素の JavaScript)
  • エディタ画面のみで動作(フロントエンドには影響なし)
  • WordPress コーディング規約準拠

FAQ
ChangeLog