This code recipe allows you to send a custom email template for members who renew their membership. The email replaces the standard checkout template a first time member would have received (i.e. checkout_paid.html or equivalent). A list of all default email templates is available here.
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