Dock Access AI Alt Generator
Dock Access AI Alt Generator
Description
Dock Access AI Alt Generator connects your WordPress site to a Dock Access account on dockaccess.org and lets you write alt text for images without leaving the media library.
One click next to the Alternative Text field generates a single alt text, writes it to the image straight away and keeps it in step with the alt text held in your Dock Access account.
What makes it different
Most alt text plugins stop at “call a model, paste the answer”. This one is the WordPress end of an accessibility workflow that lives outside WordPress:
- The alt text of a site is one shared set, not per-plugin state. Every image goes into a single image set in the Dock Access account, keyed by the site token, so an editor, an auditor or another shop on the same account works on the same alt texts.
- Alt text travels both ways. An alt edited in WordPress is sent back to the account; an alt edited in the account is pushed into WordPress over a signed REST endpoint. Neither direction echoes the other, so the two never fight.
- It writes in the language of the image, not the language of the site. WPML and Polylang decide the language per media item, with a manual override per image and 85 languages available.
- Bulk generation respects a quota instead of hitting a wall. Images are sent one at a time; the run stops cleanly the moment the daily limit is reached, keeps everything already written and says where to pick up.
- It asks before it spends. Before each generation the plugin checks with dockaccess.org whether the generator is still enabled for this site, and says which case it is – not enabled, or paused by the plan – instead of burning a request.
Features
- One-click generation right below the Alternative Text field – one alt text, applied and saved immediately
- Guided setup: get the site token, connect, generate – with links straight into your Dock Access account
- Plan, daily request usage and site count shown on the settings screen
- Bulk generation screen with every image of the library, paged, searchable and filterable to the images that have no alt text yet
- Alt texts edited in WordPress are sent back to the alt generator
- Alt texts edited elsewhere can be pushed into this site over a secret-protected endpoint
- Default context and tone in Settings AI Alt Generator, overridable per image
- WPML and Polylang support with automatic language detection
- Tokens are kept out of plain sight in the options table and are never printed on screen
Requirements
- A Dock Access account on dockaccess.org with a site token – the plugin generates through that account and nothing else
- WordPress 6.0 or newer
- PHP 7.4 or newer
External services
This plugin does not generate alt text on your server. It is the WordPress client of the Dock Access alt generator, an external service run by Dock Codes sp. z o.o. (dockaccess.org), and it cannot work without an account there. Two endpoints of that service are used.
1. Dock Access connector API – https://dockaccess.org/fast-api
Used to connect the site to your account, to check that the alt generator is still enabled for it, to disconnect it, and to send alt texts you edited in WordPress back to the account.
What is sent, and when:
- When you press Connect on the settings screen: the site token you pasted, your dockaccess.org login and password, the address of this site (
home_url), the URL of this site’s push endpoint, the WordPress version and the plugin version. The login and password are used for this one call and are never stored. - Before every generation, and when the settings screen is opened: the site token and the connection secret. No login, no password.
- After you edit the Alternative Text of an image that was generated through this plugin: the identifier of that image in the account, the new alt text, its language, the site token and the account token.
- When you press Disconnect: the site token, your dockaccess.org login and password, and the address of this site.
2. Dock Access alt generator API – https://alt.dockaccess.org
Used to produce the alt text itself and to read the daily usage of the account.
What is sent, and when:
- Every time you press Generate alt text, and once per image during a bulk run: the image file itself, the context text and tone from the settings (or the ones you set on that image), the target language, the account token and the site token. The image is analysed by an AI model on the service side to produce the description.
- When the settings screen or the bulk screen shows the usage counter: the account token only.
Nothing is sent to either endpoint until you connect the site. Until then the media library shows a note with a link to the connection screen instead of the generate button.
Use of the service is governed by the Dock Access terms of service and privacy policy:
- Terms of service: https://dockaccess.org/rules-regulations/regulations/
- Privacy policy: https://dockaccess.org/rules-regulations/privacy-policy/
- All Dock Access legal documents: https://dockaccess.org/rules-regulations/
Installation
- Upload the
dock-access-ai-alt-generatorfolder to the/wp-content/plugins/directory, or install through the WordPress plugins screen. - Activate the plugin through the Plugins screen.
- Go to Settings AI Alt Generator Connection and follow the three steps: open your sites on dockaccess.org to copy the site token, paste it here together with your account login and password, and press Connect.
- Open any image in the media library and use the Generate alt text button next to the Alternative Text field.
Until the site is connected the media library shows a short note with a link to the connection screen instead of the generate button, and the plugin makes no calls to the service.
Faq
Yes. Alt text is generated by the Dock Access alt generator on dockaccess.org, not on your server, so the plugin needs an account there and a site token from it. See the “External services” section above for exactly what is sent and when.
Settings AI Alt Generator Bulk generation lists every image, with a filter for the ones that have no alt text yet, a page size and a pager. Tick the images and the plugin sends them one at a time – never several at once – writing each alt as it arrives.
The moment your account has no generations left for today, the run stops. The rows already done keep their new alt texts, the remaining ones are marked as not generated, and the summary says how far it got and links to the plans. Nothing is lost: pick up where it stopped tomorrow, or on a higher plan straight away.
The generator also accepts a limited number of requests per minute. That is not your daily limit, so the run simply waits it out and retries the same image instead of stopping.
Nothing is generated. Before each generation the plugin asks dockaccess.org whether the service is still on for this site (site token plus the connection secret – no login, no password), and the media panel shows what it heard back: the generator is not enabled for the site, or it is paused by the current plan. Connecting a site in that state is refused for the same reason, so a site is never half-connected.
If dockaccess.org itself cannot be reached, generation goes on rather than stopping the site over an outage – the alt generator API still checks the account behind it. Add add_filter('dock_access_alt_generator_verify_blocks_generation', '__return_true'); if you would rather have it stop.
The plugin says so and asks for confirmation before replacing the connection. A replacement rotates the push secret, so any other copy of the plugin on the same address stops receiving alt updates. The same confirmation appears when dockaccess.org reports the address as connected.
No. The login and password are used for the connect and disconnect calls only.
The site token, the account token and the push secret are kept in the options table, encoded with a key derived from the WordPress salts, and none of them is ever printed on screen – the connection screen shows the site token masked and nothing else. The encoding keeps the tokens out of plain sight in database dumps and exports; it is not a secret store, because anyone holding both wp-config.php and the database can decode them.
Yes, whenever the site is connected and the image was generated through the plugin. Editing the Alternative Text sends the new value to your Dock Access account after the save. A generated alt text is not sent back, and an alt text pushed to this site is not echoed either, so nothing can loop.
Yes, through /wp-json/dock-access-alt-generator/v1/alts. Every request has to be signed with the push secret from the connection: an X-Dockaccess-Signature header carrying an HMAC-SHA256 of the timestamp and the request body, valid for five minutes. The secret itself is never sent, so it cannot be picked up from a log or a proxy, and a captured request cannot be re-pointed at a different alt text. The endpoint then writes the alt text matching the language of the media item.
Connection Push endpoint Test the endpoint sends a signed probe to your own site and tells you whether the route is reachable and the signature accepted – handy when a host blocks the REST API.
Then the alt generator does not know it, and edits stay local. Generate the alt text once for that image and edits start syncing.
Exactly one. It is written to the image immediately – there is nothing to pick from.
The plugin is fully internationalised and translations are handled through translate.wordpress.org, so any locale the community translates is delivered by the normal WordPress update system – nothing to install by hand.
Images only – JPEG, PNG, GIF, WebP, BMP, TIFF and SVG. SVG works even on sites that do not allow SVG uploads themselves, because the plugin reads the type from the file rather than from the site’s allowed list. Other media types are ignored.
Nothing. Uninstalling removes the stored connection, the generation defaults and the per-image bookkeeping meta. The alt texts themselves stay on your images, because they are ordinary WordPress alt text.
Reviews
Changelog
1.0.0
- Initial release.