Forked from ideadude/pmprosm_sponsored_account_levels.php
Created
February 8, 2019 19:11
-
-
Save itsjusteileen/d777404cd3bf67b8b8a7b82eccf592d7 to your computer and use it in GitHub Desktop.
Example global settings for the PMPro Sponsored Members Add On
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Define the global array below for your main accounts and sponsored levels. | |
Array keys should be the main account level. | |
*/ | |
global $pmprosm_sponsored_account_levels; | |
$pmprosm_sponsored_account_levels = array( | |
//set 5 seats at checkout | |
1 => array( | |
'main_level_id' => 1, //redundant but useful | |
'sponsored_level_id' => array(1,2), //array or single id | |
'seats' => 5 | |
), | |
//seats based on field at checkout | |
3 => array( | |
'main_level_id' => 3, //redundant but useful | |
'sponsored_level_id' => 4, | |
'seat_cost' => 250, | |
'max_seats' => 10 | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment