=== AltTextAPI — AI Alt Text Generator ===
Contributors: altextapi
Tags: alt text, accessibility, SEO, AI, images
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Auto-generate descriptive, SEO-optimized alt text from your post context. Helps improve accessibility across your site.

== Description ==

AltTextAPI generates descriptive alt text for your images using a specialized vision AI trained for accessibility and SEO. It understands accessibility best practices and produces alt text that screen readers can actually use.

**What makes this different:**

* **Context-aware generation.** Reads your post title and categories and uses them as keywords — so a product image on a "Winter Boots" page gets alt text about winter boots, not just "a brown shoe."
* **Quality checks.** Every generated alt text is checked: too long? Redundant prefix? Looks like a filename? Gets a ✓ or ⚠ badge right in your media library.
* **Site Health integration.** See your alt text coverage score in Tools → Site Health. Know exactly how many images need attention.
* **Dashboard widget.** At-a-glance coverage stats every time you log in.
* **Bulk processing.** Process your entire existing library with a click. Progress bar, resumable, handles thousands of images.
* **Media library column.** Scan down your media library and see which images have quality alt text, which need review, which are missing.

**Free tier: 50 images/month, no credit card.** Pro: 1,000/mo ($9). Business: 5,000/mo ($19). Agency: Unlimited ($49).

== Installation ==

1. Upload the `altextapi` folder to `/wp-content/plugins/` or install via Plugins → Add New.
2. Activate through the Plugins menu.
3. Go to Settings → AltTextAPI and enter your API key.
4. Get a free key at [altextapi.com/signup](https://altextapi.com/signup).

New uploads get alt text automatically. Use the Bulk Process button for existing images.

== Frequently Asked Questions ==

= Where do I get an API key? =

Sign up at [altextapi.com/signup](https://altextapi.com/signup). Free tier gives you 50 images/month — no credit card required.

= Does this work with WooCommerce? =

Yes. When you upload product images on a product page, the plugin uses the product title and categories to generate context-aware alt text.

= Will it overwrite my existing alt text? =

By default, no. It only fills in empty alt text. There's a checkbox in settings to overwrite existing alt text if you want a full refresh.

= Does the generated alt text help meet accessibility standards? =

Our AI is trained on accessibility best practices including WCAG guidelines. It can help improve your site's accessibility, but it does not guarantee WCAG compliance — manual review is still recommended. Every output is checked for quality (length, redundancy, keyword stuffing). Images that don't pass get a ⚠ badge for manual review.

= Does it work with the block editor (Gutenberg)? =

Yes. The plugin hooks into WordPress core attachment upload, which works regardless of your editor.

== Privacy ==

This plugin connects to the AltTextAPI service to generate alt text. When you use the plugin:

* **Images are sent to our API** (api.altextapi.com) for processing. Images are processed in memory and never stored after alt text is generated.
* **Post metadata** (title and categories) is sent alongside images to provide context-aware results.
* **Your API key** is stored locally in your WordPress database and sent with each request for authentication.
* **No tracking.** We do not track users, collect analytics, or use cookies.

By using this plugin, you agree to the AltTextAPI Terms of Service and Privacy Policy at [altextapi.com/terms](https://altextapi.com/terms) and [altextapi.com/privacy](https://altextapi.com/privacy).

== Screenshots ==

1. Settings page with API key, language, and overwrite options.
2. Media library showing quality check badges (✓ / ⚠ / Missing).
3. Bulk processing with progress bar.
4. Dashboard widget showing alt text coverage.
5. Site Health integration with coverage percentage.

== Changelog ==

= 1.0.0 =
* Initial release.
* Auto-generate on upload with post context.
* Bulk process existing media library.
* Quality check badges.
* Media library status column.
* Site Health integration.
* Dashboard widget.
* WooCommerce compatible.
