Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ideadude
Last active November 27, 2023 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ideadude/27e5f263ade21d8fa3ac7b08b278e9c3 to your computer and use it in GitHub Desktop.
Save ideadude/27e5f263ade21d8fa3ac7b08b278e9c3 to your computer and use it in GitHub Desktop.
Example global settings for the PMPro Sponsored Members Add On
/*
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(2,3), //array or single id
'seats' => 5
),
//seats based on field at checkout
4 => array(
'main_level_id' => 4, //redundant but useful
'sponsored_level_id' => 5,
'seat_cost' => 250,
'max_seats' => 10
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment