Customization Notes
In the example here, we are setting the default role to the ‘Subscriber’ role, and you can set your desired role by editing the ‘$args[‘role’] = ‘subscriber’;’ entry.
// Set Woocommerce Default User Registration Role
add_filter('woocommerce_new_customer_data', 'wc_assign_custom_role', 10, 1);
function wc_assign_custom_role($args) {
$args['role'] = 'subscriber';
return $args;
}