Require members to input an appropriate sponsor code when checking out for a Sponsored/Group Members membership level. This will add another level of security to your membership level, ensuring that only the correct “child” accounts are created.
![Screenshot of a failed membership checkout when no sponsor code was used.](https://www.paidmembershipspro.com/wp-content/uploads/2020/10/pmpro-sponsored-members-discount-code-required.png)
![Banner for Advanced Code Recipe Tutorial for Paid Memberships Pro](https://www.paidmembershipspro.com/wp-content/uploads/2022/08/pmpro-generic-code-recipe-banner-1024x576.jpg)
The Code Recipe
Adding the Recipe to Your Website
You can add this recipe to your site by creating a custom plugin or using the Code Snippets plugin available for free in the WordPress repository. Read this companion article for step-by-step directions on either method.