Bulk Update Media Alt Text from CSV
wp_bulk_update_media_alt_textBulk update WordPress media alt text from a CSV file, with optional caption, description, and title fields. Dry-run mode previews changes before applying.
Instructions
Backfill alt text (and optionally caption/description/title) across many media items from a CSV. Required columns: id, alt_text. Optional: caption, description, title. Defaults to dry_run=true.
Use case: the 2020-era alt-text backfill on arsnovasingers.org.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| csv_path | Yes | Path to CSV. Required columns: id, alt_text. Optional columns: caption, description, title. | |
| stop_on_error | No | ||
| response_format | No | Output format: 'markdown' for human-readable, 'json' for machine-readable. | markdown |