Before exporting referral (RAF) codes, please make sure to do the following:
- Generate missing codes as explained under How to generate referral links for old customers?
- Next, install the WordPress Export Users plugin – you can find it here – https://wordpress.org/plugins/import-users-from-csv-with-meta/
- Lastly, under the Export tab, type this for columns field
- user_email,gens_referral_id