=== GetAltText ===
Contributors: getalttext
Tags: accessibility, alt-text, wcag, images, seo, a11y
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Automatically generate WCAG-compliant alt-text for your WordPress images using AI.

== Description ==

GetAltText generates concise, meaningful alt-texts for your images using the GetAltText API.

**Features:**

* Auto-generate alt-text on image upload
* Bulk action: select images in Media Library → "Generate Alt-Text"
* Bulk action: "Validate Alt-Text" — check quality and WCAG compliance of existing alt texts
* Site Scanner: scan your site for images with missing or poor alt text
* Smart context extraction: automatically sends surrounding text, post title, categories, and gallery siblings to the API
* WooCommerce: auto-generate for product images with product name, description, and category as context
* Multi-language: EN, DE, FR, ES
* Settings page with live credit/usage display
* Decorative image detection (sets empty alt)

**How it works:**

1. Install the plugin
2. Go to Settings → GetAltText
3. Enter your API key (get one free at getalttext.com/register)
4. Done — alt-texts are generated automatically on upload

== Installation ==

1. Upload the `getalttext` folder to `/wp-content/plugins/`
2. Activate the plugin through the 'Plugins' menu
3. Go to Settings → GetAltText and enter your API key

== Frequently Asked Questions ==

= Where do I get an API key? =
Register for free at [getalttext.com/register](https://getalttext.com/register). You get 50 free credits per month.

= What languages are supported? =
English, German, French, and Spanish.

= Does it work with WooCommerce? =
Yes. Product images are automatically processed when set, with product name, short description, and category sent as context for better results.

= What is the Site Scanner? =
The Site Scanner (Settings → GetAltText) crawls your site's homepage and reports images with missing or poor alt text, with an overall accessibility score.

= What does the Validate bulk action do? =
Select images that already have alt text in the Media Library, choose "Validate Alt-Text (GetAltText)", and get a quality score (0–100) with specific issues and improvement suggestions for each image.

== Changelog ==

= 1.1.0 =
* Smart context extraction: surrounding text, post title, categories, gallery siblings
* WooCommerce: sends product name, description, category as context
* New bulk action: Validate Alt-Text with score and issues
* New Site Scanner section in settings page
* API support for surrounding_text and sibling_images fields

= 1.0.0 =
* Initial release
