| 开发者 | valeriomonti |
|---|---|
| 更新时间 | 2026年3月25日 21:30 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9.0 |
| 版权: | GPLv3 |
| 版权网址: | 版权信息 |
wp auto-alt-text generate --ids=123,456,789
Process all image attachments in batches:
wp auto-alt-text generate --all --limit=200 --offset=0
wp auto-alt-text generate --all --limit=200 --offset=200
Dry run (no metadata updates):
wp auto-alt-text generate --ids=123,456 --dry-run
Force overwrite of existing alt text (even if “Keep existing alt text” is enabled):
wp auto-alt-text generate --all --limit=200 --offset=0 --force
Notice: If you choose one of the methods that involves the use of external APIs, the upload times for images in the media library might increase because it requires sending a request to the APIs, waiting for the external server to process, and waiting for a response.
Logging
If the generation of the alt text via AI is set, in case of errors, to avoid blocking the editorial work, the image is loaded anyway but without the alt text being compiled.
When a call to the Azure or OpenAI API fails, a record containing the error message is saved in a custom database table.
In this case, the cause of the error can be seen on the Auto Alt Text -> Error log page.
External Services
This plugin uses the following external services alternatively:
OpenAI
Selecting the generation method "OpenAI's APIs" will use the API services of OpenAI.
This plugin does not collect any information from your OpenAI account. The data transmitted to OpenAI mainly consists of the image files uploaded to your website and the specified prompt.
For accurate information on privacy and conditions of use, please consult the privacy policy and terms and conditions directly on the official website. It is also advisable to check the costs and usage statistics of the API service on the OpenAI website.
Anthropic Claude
Selecting the generation method "Anthropic's APIs" will use the API services of Anthropic.
This plugin does not collect any information from your Anthropic Claude account. The data transmitted to Anthropic Claude mainly consists of the image files uploaded to your website and the specified prompt.
For accurate information on privacy and conditions of use, please consult the privacy policy, terms and conditions for consumers and terms and conditions for commercial directly on the official website. It is also advisable to check the costs and usage statistics of the API service on the Anthropic website.
Azure
Selecting the "Azure's APIs" generation method will use the API services of Microsoft Azure.
This plugin does not collect any information from your Azure account. The data transmitted to Azure consists mainly of image files uploaded to your website.
For accurate information on privacy and conditions of use, please directly consult the privacy policy and terms and conditions on the official website. It is also advisable to check the costs and usage statistics of the API service on the Microsoft Azure's website.
Encryption Constants
We strongly recommend defining the new plugin-specific constants in your wp-config.php:
define( 'AAT_ENCRYPTION_KEY', 'a_random_string_of_at_least_64_characters' );
define( 'AAT_ENCRYPTION_SALT', 'another_random_string_of_at_least_64_characters' );
You will find these two define(...) lines already generated for you on the Auto Alt Text » Options page – simply copy & paste them before the /* That's all, stop editing! Happy publishing. */ line in your wp-config.php.
If you choose not to add them, the plugin will continue to work normally, but it will fall back to using your WordPress LOGGED_IN_KEY / LOGGED_IN_SALT, which may break if those salts are ever changed.
Disclaimer
Auto Alt Text is a plugin that helps users automatically generate Alt Texts of their images using AI services such as OpenAI's ChatGPT or Microsoft Azure.
Users need their own API key and must follow the rules set by the AI service they choose.
By using Auto Alt Text, users agree to watch and manage AI-made content and address any issues or misuse.
AI Engine developer and related parties are not responsible for any problems or losses caused by the use of the plugin or AI-generated content.
No, but if you want to leverage the capabilities of AI, you must have an Azure or OpenAI account. Otherwise, you can choose one of the two methods that do not use AI.
If you wish to obtain the most accurate description possible of the image, you should use the "OpenAI's APIs" or "Azure's APIs" method.
This message appears because the plugin was unable to decrypt your stored API Key. In most cases this happens when the cryptographic “salt” or “key” it originally used to encrypt your API Key has changed since you first saved it. Common causes
LOGGED_IN_KEY / LOGGED_IN_SALT) in your wp-config.php after saving the API Key.AAT_ENCRYPTION_KEY / AAT_ENCRYPTION_SALT) in your wp-config.php, so the plugin fell back to the WordPress salts.
How to fix
/* That's all, stop editing! Happy publishing. */ comment in your wp-config.php:
define( 'AAT_ENCRYPTION_KEY', 'a_random_string_of_at_least_64_characters' );
define( 'AAT_ENCRYPTION_SALT', 'another_random_string_of_at_least_64_characters' );
This ensures the plugin uses stable, plugin-specific values for encryption and won’t break if WordPress salts are ever changed again.AATXT_ENCRYPTION_KEY and AATXT_ENCRYPTION_SALT, allowing API keys to be encrypted independently of WordPress’s own salts.define() statements for wp-config.php.LOGGED_IN_KEY/LOGGED_IN_SALT fallback without interruption.