Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Require a sponsor code for the "child" level checkout when using Paid Memberships Pro and the Sponsored/Group Membership Add On.
<?php
/*
* Require a sponsor code for the "child" level checkout when using
* Paid Memberships Pro and the Sponsored/Group Membership Add On.
*
* 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.
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*
*/
global $pmprosm_sponsored_account_levels;
$pmprosm_sponsored_account_levels = array(
1 => array(
'main_level_id' => 1,
'sponsored_level_id' => 2,
'seats' => 10,
'discount_code_required' => true,
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.