Programmatically create product category and add thumbnail in woocommerce
Hereby my answer to my own post. I hope this is helpful to others too! To create the category, I used an array with the data per category needed for the function wp_insert_term. Then i looped trough that array,and used a fetch_media function that uploads the image found in the image-path given to that function, … Read more