AI Media Search
WordPress plugin that uses WP 7.0 AI to generate searchable descriptions for media library images
by Adam Silverstein · github.com/adamsilverstein/wp-ai-media-search · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/adamsilverstein/wp-ai-media-search/archive/refs/heads/main.zipFrom the readme
AI Media Search
A lightweight WordPress plugin that uses the WordPress 7.0 AI Client API to generate searchable descriptions for media library images.
Upload an image of a cat, and later search your media library for "cat" — even if the filename is IMG4523.jpg and you never wrote a caption.
How it works
1. New uploads are queued for AI processing automatically (via a short-delay cron event).
2. Existing images are processed in the background by an hourly cron job, newest first.
3. Published posts trigger processing for any unprocessed images in their content.
4. The AI analyzes a scaled copy of each image (the large size by default, not the full size original) and generates a text description plus search tags.
5. The description and tags are written in the site language, so a German site gets German text to search against.
6. The description and tags are stored as post meta and included in media library search queries, both on the Media Library screen and in the block editor's media inserter.
Every AI call is a blocking request that can take several seconds, so neither
path is allowed to hand one PHP request more work than it can finish. A batch
run stops between images once t