Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ayanes821028/7391e9770f566e9a77fdc90f636a179e to your computer and use it in GitHub Desktop.
Save ayanes821028/7391e9770f566e9a77fdc90f636a179e to your computer and use it in GitHub Desktop.
global $pmprosm_sponsored_account_levels;
$pmprosm_sponsored_account_levels = [
//set 5 seats at checkout
4 => [
'main_level_id' => 4, //redundant but useful
'sponsored_level_id' => [4], //array or single id
'sponsored_accounts_at_checkout' => TRUE,
'seat_cost' => 0,
'max_seats' => 4,
'min_seats' => 4,
'children_hide_password' => TRUE,
'allow_empty_children' => TRUE,
'seat_cost_text' => '',
],
7 => [
'main_level_id' => 7, //redundant but useful
'sponsored_level_id' => [7], //array or single id
'sponsored_accounts_at_checkout' => TRUE,
'seat_cost' => 0,
'max_seats' => 4,
'min_seats' => 4,
'children_hide_password' => TRUE,
'allow_empty_children' => TRUE,
'seat_cost_text' => '',
],
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment