
This code recipe gives users a membership level during the frontend WordPress User Registration. You can use this approach if you want to offer the traditional WordPress Registration process or have users register through another plugin’s front end registration, such as Theme My Login or BuddyPress.