Forked from messica/pmpro_customizations_gift_levels_example.php
Last active
November 20, 2018 16:59
-
-
Save kimcoleman/8e4a279860c0fb60148e63f5862355a1 to your computer and use it in GitHub Desktop.
PMPro Gift Levels Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Gift Levels Example for thehawaiiherald.com | |
*/ | |
global $pmprogl_gift_levels; | |
$pmprogl_gift_levels = array( | |
// Set level 2 as a "Purchase Gift" membership level to create a gift code for "Basic Online" membership for 1 year. | |
2 => array( // "Purchase Gift" level ID | |
'level_id' => 1, // Membership Level ID of the gift membership level. | |
'initial_payment' => 0, // The initial payment for the gift membership level. | |
'billing_amount' => 0, // The recurring billing amount for the gift membership level.The recurring billing amount for the gift membership level. | |
'cycle_number' => 0, // The number of billing cycles for the gift membership level. | |
'cycle_period' => '', // The billing cycle period. Possible values are "Day", "Week", "Month", and "Year" (without the quotes). | |
'billing_limit' => 0, // The billing cycle limit for the gift membership level. | |
'trial_amount' => 0, // The trial amount for the gift membership level. | |
'trial_limit' => 0, // The number of cycles the trial should last for the gift membership level. | |
'expiration_number' => 1, // The number of "experiation_period"s before the gift membership level expires. | |
'expiration_period' => 'Year' // The duration of the period used by "expiration_number". Possible values are "Day", "Week", "Month", and "Year" (without the quotes). | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment