Configure Paid Memberships Pro to accept a discount code across two separate WordPress websites. Please note that this code recipe is designed for advanced developer applications.

About the Code Recipe
This tooltip is for advanced developers that need to restrict discount code usage from a local PMPro site for members of a remote PMPro site.
Some notes about the recipe:
- You must have PMPro running on both sites.
- The discount code should be on the local site.
- The remote site should be using the Application Passwords plugin.
- With a password set up for an admin user.
- Update the options below in the pmprosdc_get_options() function.
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.