Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
My PMPro Sponsored Members Code Example
<?php // Do not copy this line please.
* This Sample shows how a Sponsor can create users (child accounts) at checkout
* Using the Sponsored/Group Members Add On for PMPro
* 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.
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), //array or single id
'min_seats' => 2,
'max_seats' => 5,
'seat_cost' => '21',
'sponsored_accounts_at_checkout' => true, // sponsored members to create child accounts at checkout if set to true
'children_get_name' => true,
'children_hide_email' => false,
'children_hide_username' => false,
'children_hide_password' => false
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.