
Smart Alt Text
v2.0.0vigneshkemp · 2025年4月15日 上架
Automatic, readable alt text for new uploads and your existing Media Library, from the image title, file name or parent post.
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 869
- 最近更新
- 2026年11月25日
需要 WordPress 6.2+已测试到 7.1.5PHP 7.4+
贡献者
截图
Images without alt text hurt accessibility and image SEO. Smart Alt Text fills the gaps automatically, and it never touches alt text you wrote yourself unless you ask it to.
What it does
- New uploads: when you upload an image without alt text, it generates one and saves it to the Media Library.
- Existing images: one click updates your whole library. It runs in small batches with a progress bar, so it works on sites with thousands of images.
- Front-end fallback: any image still missing alt text gets one when the page is displayed. This covers post content (block and classic editor), featured images, galleries, WooCommerce and page builders such as Elementor.
- Media Library tools: an “Alt text” column in list view shows which images are missing it, and two bulk actions let you generate or regenerate alt text for selected images.
Smart, readable results
- Choose the source: the image title (editable in the Media Library), the file name, or the title of the post the image was uploaded to.
- Clean-up removes noise such as
IMG_1234,DSC0042,PXL_20240101_…,-scaled,-300x200, dates, timestamps, WhatsApp/screenshot prefixes and random hashes.IMG_4821-scaled.jpgin a post called “Kerala Backwaters Trip” becomes Kerala Backwaters Trip rather than “Img 4821 Scaled”. - Letter case: Title Case, Sentence case, lowercase, or keep the original.
- Optional prefix/suffix with
{site}and{post}placeholders. - Optionally also clean up the image title, and fill an empty caption or description on upload.
- A preview table shows the suggested alt text for your images before you run anything.
For developers
- WP-CLI:
wp smart-alt-text stats,wp smart-alt-text generate [--dry-run] [--overwrite] - Filter
smart_alt_text_generated_alt( $alt, $attachment_id, $raw, $settings )changes the result. - Filter
smart_alt_text_title_case_small_wordssets the words kept lowercase in Title Case.


