For exporting customer role for the orders using Order Export Import Plugin for WooCommerce below code snippet can be used in the child theme’s functions.php
Please refer this updated article if you have Order Export Import Plugin version greater than 1.1.0. Below article is only relevant for prior versions.