內容簡介
<b>總結:</b>
AutoAltify 是一個強大的 WordPress 外掛,可以自動為您媒體庫中的圖片生成描述性的 ALT 文本。提高無障礙性和 SEO 同時節省手動輸入 ALT 文本的時間。
<ol>
<li><b>什麼是 AutoAltify 外掛?</b><br>
AutoAltify 是一個WordPress外掛,可以自動為您媒體庫中的圖片生成描述性的ALT文本。</li>
<li><b>生成模式有哪些?</b><br>
AutoAltify 提供了三種生成模式:僅標題、標題+網站名稱、或乾淨的檔名。</li>
<li><b>如何使用 AutoAltify?</b><br>
您可以啟用自動生成功能,從上傳圖片時自動生成ALT文本,也可以從設置頁面對整個媒體庫生成ALT文本,或選擇特定圖片進行ALT文本生成。</li>
<li><b>安全性和性能如何?</b><br>
AutoAltify 在所有AJAX操作中進行安全的nonce驗證,對所有管理功能進行正確的功能檢查,並通過有效的批處理避免服務器超時。</li>
<li><b>是否開發者友好?</b><br>
AutoAltify具有模塊化的基於類的架構,提供多個操作和篩選鉤子進行自定義,並提供清晰的名稱空間實現。程式碼有PHPDoc註釋,易於擴展和與其他外掛集成。</li>
<li><b>AutoAltify可以進行語言翻譯嗎?</b><br>
是的,AutoAltify是完全可翻譯的,文本域:</li>
</ol>
外掛標籤
開發者團隊
原文外掛簡介
AutoAltify is a powerful WordPress plugin that automatically generates descriptive ALT text for images in your media library. Improve accessibility and SEO while saving time on manual ALT text entry.
Features
Automatic ALT Text Generation – Generate ALT text from image titles, filenames, or combined with site name
Three Generation Modes – Title Only, Title + Site Name, or Clean Filename
Bulk Operations – Generate ALT text for your entire media library with one click
AJAX Batching – Process images in batches to prevent timeouts
Media Library Integration – View ALT status directly in media library
Logging – Optional detailed logging for troubleshooting
Bulk Actions – Process selected images from media library
Developer Hooks – Extensive filters and actions for custom integration
Multi-language Ready – Fully translatable
Generation Modes
Title Only – Uses the clean image title as ALT text
Title + Site Name – Combines the image title with your blog name
Clean Filename – Extracts readable text from filenames, removing common noise words (v1, v2, final, copy, img, image, etc.)
Three Ways to Use
Enable Auto-generate – Automatically generate ALT text when images are uploaded
Bulk Run Tool – Generate ALT text for entire media library from settings page
Media Library Bulk Action – Select specific images and generate ALT text
Security & Performance
Secure nonce verification on all AJAX actions
Proper capability checks for all admin functions
Efficient batching prevents server timeouts
Configurable batch sizes (5-200 images per batch)
Works with large media libraries (1000+ images)
Developer-Friendly
Modular class-based architecture
Multiple action and filter hooks for customization
Clean namespace implementation (AutoAltify)
Well-documented code with PHPDoc comments
Easy to extend and integrate with other plugins
Translations
AutoAltify is fully translatable. Text domain: autoaltify
Configuration
Navigate to Settings → AutoAltify to configure:
Auto-generate on Upload – Enable automatic generation when images are uploaded
Generation Mode – Choose how ALT text is built (Title Only, Title + Site Name, Clean Filename)
Allowed Image Types – Select which formats to process (JPG, PNG, GIF, WebP, AVIF, SVG)
Enable Logging – Turn on logging to wp-content/uploads/autoaltify-logs/
Batch Size – Set images per batch (5-200, default 30)
Usage
Auto-generate on Upload
Enable the “Auto-generate on upload” setting to automatically generate ALT text for newly uploaded images.
Bulk Run All Media
Go to Settings → AutoAltify
Click “Run ALT Generator on all media (missing only)”
Watch the progress bar
Only processes images without existing ALT text
Media Library Bulk Action
Go to Media Library
Select one or more images
Choose “Generate ALT with AutoAltify” from Bulk Actions
Click Apply
Media Library Column
View ALT status directly in the media library with the new “ALT Status” column showing:
* “Present” (green) – Image has ALT text
* “Missing” (red) – Image needs ALT text
API Reference
Filters
autoaltify_generated_alt
Modify the generated ALT text before it’s saved.
add_filter( 'autoaltify_generated_alt', function( $alt, $attachment_id ) {
return 'Image: ' . $alt;
}, 10, 2 );
autoaltify_clean_title
Modify the cleaned title before final ALT text.
autoaltify_clean_filename
Modify the cleaned filename before final ALT text.
Classes
AutoAltify\Core\Generator – ALT text generation logic
AutoAltify\Core\Logger – Logging functionality
AutoAltify\Core\Options – Settings management
AutoAltify\Admin\Admin – Admin interface
AutoAltify\Public_Hooks\Public_Hooks – Frontend hooks
See DEVELOPER-GUIDE.md for detailed API documentation.
Requirements
WordPress 5.0 or higher
PHP 7.2 or higher
Multibyte string support (mb_* functions)
Compatibility
Works with:
* WordPress 5.0 – 6.4+
* PHP 7.2 – 8.3+
* All standard WordPress themes
* WooCommerce (for product images)
* Most image optimization plugins
Performance
Configurable batch sizes (5-200 images)
AJAX processing prevents timeouts
Efficient database queries with meta queries
Optional logging for better performance control
Suitable for media libraries with 1000+ images
Support
For questions, issues, or feature requests, please contact the plugin author or refer to documentation.
License
This plugin is licensed under GPLv2 or later.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2 or later,
as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Credits
Built with WordPress best practices and security in mind.
Made with ❤️ for WordPress developers and site owners.
