Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example global settings for the PMPro Sponsored Members Add On
<?php
/*
Define the global array below for your main accounts and sponsored levels.
Array keys should be the main account level.
*/
$pmprosm_sponsored_account_levels = array(
/*
`1 => array(),` sets the sponsor level to 1
We now fill the attributes of that sponsored accounts in the array
*/
//set 5 seats at checkout
1 => array( // the level that sponsors other level(s)
'main_level_id' => 1, //redundant but useful (same as above, this was the old way that's why redundant now )
'sponsored_level_id' => array(1,2), //array or single id This is the levels that the user may checkout for using the sponsored membership discount codes
'seats' => 5 // the amount of seats (sponsored membership accounts)
),
//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
You can’t perform that action at this time.