Set Featured Images Programmatically in WordPress Cycle through each WooCommerce product & automatically set it's featured image

Recently, I found myself needing to auto-set 300+ featured images for a customers WooCommerce store. After the initial panic phased itself out, I took a couple of deep breathes and realized I’ve done a few kinda-sorta similar things with custom functions in the past. After a few hours of hacking the code up and reformatting […]