Answer the question
In order to leave comments, you need to log in
How to programmatically add a photo to a WooCommerce product?
Good afternoon. There is a task to synchronize the database of a self-written store and a WooCommerce store. With the data, everything is simple, but here is how, knowing the url of the image, load it correctly into the product card (as the main image) and so that it becomes correct (because wordpress performs some manipulations with the image when loading)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question