Can images be added and updated via the Woo Commerce REST API?

WP Intense Q & ACategory: External ImagesCan images be added and updated via the Woo Commerce REST API?
Neal Schaefer asked 3 months ago

With your External Images plugin – can images be added and updated via the Woo Commerce REST API?

Question Tags:

1 Answers
Dave Hilditch Staff answered 3 months ago

Yes they can. To add them, set the post meta field external_image_url – inside here, place pipe | separated image URLs.

If you are updating products, if you have your API configured to run the post_meta actions by default, then the same as above will work, just update the external_image_url meta value.

If you have wordpress hooks switched off for some reason, you’ll also need to reset the meta field ei_converted to 0 instead of 1.

We use cookies

We use cookies for various things on our site, including our on-site chat bubble (if you use it), our comment forms (if you use them) and for session handling (if you log in).

Other than that, we use cookies to identify where traffic came from to help us understand which traffic turns into sales, we use a cookie for Google Analytics traffic analysis and we use a cookie to customise adverts for our own products we think you'll be interested in.

You can read more detail in our privacy policy page. Please click 'Accept' or 'Decline' to continue.