Give your members a unique membership number that is separate from their “User ID” (the auto-incremented ID for each user of your site). This is useful for associations, clubs, fitness sites and more.
The code recipe generates a unique 10-digit membership ID at registration. The identifier will be displayed on the Account and Invoice pages, as well as within the Confirmation email. You may also want to use this unique ID in a custom Membership Card template using our Membership Card Add On or in the directory when using our Member Directory and Profile Pages Add On. The generated ID is stored in user meta with the key