Woocommerce – Get Products sold with specific meta key between certain dates
I have used the following code to add a charity_tag to products based on the tag of the author of the product when sold add_action( 'woocommerce_order_status_processing', 'update_product_meta', 20, 2 ); function update_product_meta ( $order_id, $order ) { $items = $order->get_items();…