
外掛標籤
開發者團隊
原文外掛簡介
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 コーディング規約準拠
