I have this odd situation I’m building middleware to connect a database of course info, copy said info into woocommerce products, and do some other stuff. The issue I’m trying to tackle is how to handle images.
I need a way so that users of the platform I’m connecting to can enter a string that represents a specific image on wordpress to represent the course. Preferably in a way that new images can be easily added to the media library then used. This needs to be as easy to use as possible for users. If they can just enter ‘123’ for an ID or ‘image.jpeg’ that would be best. But if using IDs I’d need a suggestion for how to easily tell users what the ID of the image is.
I just need suggestions for the best way to tackle this.
Read more here:: How can I select images to display for a post using middleware?