=== Alt Text Audit Lab ===
Contributors: alttextauditlab
Tags: alt text, accessibility, media library, images, seo
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Audit Media Library alt text, get AI drafts, approve them, write them back in batches, and roll a batch back.

== Description ==

Alt Text Audit Lab adds Media > Alt Text Audit to your dashboard.

* **Audit.** Lists Media Library images with their current alt text and flags the common problems: no alt text, alt text that is a file name (IMG_2041.jpg), generic words ("image", "photo"), alt text that starts with "image of", alt text over 150 characters, and the same alt text on different images.
* **Draft.** Select images and request AI drafts. Each draft comes back into an editable box with a short note when the model was unsure.
* **Review.** For every image choose Approve, Decorative (empty alt text, on purpose) or Skip. Nothing is written until you click "Write approved alt text".
* **Write back in batches.** Approved alt text is saved to the image's Alt Text field (`_wp_attachment_image_alt`). Each write is recorded as a batch with the value every image had before.
* **Roll back.** History and rollback lists every batch. Rolling back restores the previous values. An image whose alt text was edited after the batch is left alone and reported.

What it changes, and what it doesn't: the Media Library alt text is what WordPress uses for featured images, galleries, WooCommerce product images, and any image you insert after the change. Images that were already placed in post or page content with the block editor keep the alt text they were inserted with; update those in the editor.

Alt text needs a human decision. The drafts are a starting point, and using this plugin does not by itself make a site conform to WCAG, the ADA, the European Accessibility Act or any other standard or law.

== External services ==

This plugin connects to the Alt Text Audit Lab API (https://alttextauditlab.com) to write alt text drafts. It only connects when a user with permission to upload files clicks "Get AI drafts for selected".

For each selected image it sends: one copy of the image (an existing resized copy of at most 1024 pixels when WordPress has one), the file name, the attachment title and caption, the current alt text, the title of the post the image is attached to, and the plugin settings (the "This site is" text, style and maximum length). It does not send user data, the site's address or any other content.

The image is processed in memory to produce the draft and is not stored. The draft is generated by an AI model provider that the service sends the image to for that purpose.

Free use is limited to 25 drafts per day per server IP address.

Terms of use: https://alttextauditlab.com/terms
Privacy policy: https://alttextauditlab.com/privacy

== Installation ==

1. Download alt-text-audit-lab.zip from https://alttextauditlab.com/integrations/wordpress
2. In WordPress, go to Plugins > Add New Plugin > Upload Plugin, choose the ZIP and click Install Now.
3. Activate the plugin, then open Media > Alt Text Audit.
4. Optional: under Settings, describe your site in a few words so drafts fit it.

== Frequently Asked Questions ==

= Does it change alt text without asking? =

No. Drafts appear in the review table. Only rows you mark Approve or Decorative are written, and only when you click "Write approved alt text".

= How do I undo a batch? =

Open the History and rollback tab and click Roll back next to the batch. Each image gets back exactly what it had before, including "no alt text set".

= What does uninstalling remove? =

The plugin's drafts, batch history and settings. Alt text you wrote to the Media Library stays.

== Changelog ==

= 0.1.0 =
* First release: audit, AI drafts, review, batch write-back and rollback.
