跳到内容

andW ImageNameLabel

v1.1.0

yasuo3o3 · 2025年12月12日 上架

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

正在使用
10 以下
评分
暂无
累计下载
431
最近更新
2025年12月12日
需要 WordPress 6.0+已测试到 6.9.12PHP 7.4+

贡献者

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 コーディング規約準拠

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums