Bulk populate WooCommerce product image alt text using the WooCommerce product title (where specific alt text has not been defined).
DISCLAIMER: If you would like to use this utility, please do test on a local/staging environment first, and check that product images are affected as you itend.
Table of Contents
pip install wc-image-alt
or
pipx install wc-image-alt
First copy .env.example
to env
and fill in your woocommerce REST API
credentials.
Either load this using dotenv, or source the file (source .env
).
wc-image-alt export-csv
Dry run:
wc-image-alt import-csv
Update the product image alt text from the (exported/modified) CSV:
wc-image-alt -w import-csv
wc-image-alt
is distributed under the terms of the MIT license.