By default, the Affiliates Add On for Paid Memberships Pro generates a new affiliate code for each new user. This code recipe will generate an affiliate code for all existing users on your website.
You will need the Affiliates Add On installed for this recipe to work as expected.
This content requires a premium membership plan.
Author: Jarryd Long
Jarryd is a Technical Support Engineer at PMPro. He prides himself on offering the best support to our customers and has been a part of the WordPress space since his high school days. He's developed a variety of plugins as well as spoken on the topic of providing outstanding support to customers.