i use a woocommerce xml export plugin for fetching my eshop products in an xml feed which i use for integration with my affiliate partner. My <images/> tag is look like <ImageURL>{Image URL}</ImageURL> and include line to line all my images urls.
image tag
I would like to setup a php function code in my plugin to retrive only the first image url.
Thank you in advance.