跳到内容

Auto Alt Text From File Name – Made by Saad

v1.1.0

Mohamed Saad · 2025年7月3日 上架

Fills empty alt text from the image's file name, and captions other media on request. Skips meaningless names such as IMG_1234.

正在使用
40+
评分
暂无
累计下载
1,068
最近更新
2026年11月11日
需要 WordPress 5.2+已测试到 7.1.5PHP 7.4+

贡献者

截图

Settings panel with alt and caption templates
Settings panel with alt and caption templates
Bulk update tool for existing media files
Bulk update tool for existing media files
Auto-generated alt text shown in the Media Library
Auto-generated alt text shown in the Media Library

Auto Alt Text From File Name fills the alt text of new images from their file name, and can caption audio, video and documents the same way. It is a starting point for sites whose files already have descriptive names. It is not a substitute for alt text written by a person.

red-running-shoes.jpg becomes "Red running shoes". `IMG_1234.jpg` gets nothing, because the name says nothing about the picture.

What it does

  • Fills alt text for new images when the field is empty. Existing alt text and captions are never overwritten.
  • Optionally writes a caption for audio, video and documents.
  • Mass Update fills empty fields in the existing Media Library and reports how many items it changed and skipped.
  • Uses the original file name: no “-scaled”, “-rotated” or edit numbers, no “-1” for a second copy, accents kept.
  • Skips camera, screenshot, messenger and number-only names.
  • Leaves site icons, logo and header crops alone, and keeps WordPress’s own alt text for the site logo.
  • Alt text added later by an importer replaces the generated text.
  • Templates per file type and per format, for example {filename} or Product photo: {filename}. An empty template writes nothing.
  • No account, no API key and no outside requests.

For developers

  • aatf_generated_text filters the final text. Return an empty string to skip the file. Arguments: text, attachment ID (0 while a caption is prepared before the attachment exists), source name.
  • aatf_junk_patterns filters the list of regular expressions that mark a name as meaningless.

Plums

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

导航

说明

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

© 2026 Plums