Get all WooCommerce Refunded orders
…this as a general helper function, let’s ensure we return exactly what we say we will — an array of order IDs with refunds attached to them. Now we’ll put this all together in a helper function we can use for our site or project: /** * Returns an array of order IDs that have a refund associated with the order * * @return array $refunded_order_ids */ function sv_get_wc_orders_with_refunds() { $query_args = array( ‘fields’ => ‘id=>parent’, ‘post_ty…