Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JarrydLong/fe8916faab3a598138ab97071d133eb6 to your computer and use it in GitHub Desktop.
Save JarrydLong/fe8916faab3a598138ab97071d133eb6 to your computer and use it in GitHub Desktop.
PMPro Invite Only Example Setup
<?php //do not copy
//declare as globals
global $pmproio_invite_required_levels;
global $pmproio_invite_given_levels;
$pmproio_invite_required_levels = array(4); //Which levels require an invite code (these levels cannot be signed up for without an invite code)
$pmproio_invite_given_levels = array(5); //Which levels generate an invite code but do NOT require an invite code to be used when purchasing.
define('PMPROIO_CODES', 10 ); //How many invite codes are generated when a $pmproio_invite_given_levels level is purchased?
define('PMPROIO_CODES_USES', 1 ); //How many times can each invite code be used? Default is one.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment