Woocommerce – How to check if current order is a switch order or a parent order in a subscription?
I have a few lines of code that look through an order and perform an action IF the order includes a particular subscription product (id 12496) and the total is more than 0. function get_product_data( $customer_data, $order ) { foreach…