Cookbook › Images
Write an image caption and description
Paste into ChatGPT or ClaudeSet the caption of the beach photo to “A seaside morning” and its description to “The coast at Saltburn, at sunrise.” Keep its alt text.
Changes your site. Standard asks you first in wp-admin; Trusted does it directly.
What happens
Section titled “What happens”- Your assistant finds the image with
search_media. - It changes the caption and description through the REST API with
write_rest_route, and reads them back.
Try also
Section titled “Try also”- “Write captions for the five images in the spring post.”
Good to know
Section titled “Good to know”- Alt text is changed separately: see Set an image’s alt text.