Last active
May 26, 2020 15:45
-
-
Save MaryOJob/f7c0e8b0e67cb3c88c4bfd174aa077ce to your computer and use it in GitHub Desktop.
PMPro example configuration code for the Gift Membership Add-On (1)
This file contains 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 | |
/* PMPro Gift Levels Example - See full information here: https://www.paidmembershipspro.com/add-ons/pmpro-gift-levels/*/ | |
global $pmprogl_gift_levels; | |
$pmprogl_gift_levels = array( | |
// Also, set level 9 as a "Purchase Gift" membership level to create a customized level 10 gift. | |
9 => array( | |
'level_id' => 10, // Create a gift code for level 10 | |
'initial_payment' => 3, // with an initial payment of $3.00 | |
'billing_amount' => 3, // and a recurring billing amount of $3.00 | |
'cycle_number' => 1, // every 1 | |
'cycle_period' => 'Month', // months | |
'billing_limit' => 2, // for 2 months. | |
) | |
); | |
// Make levels 10 require a discount code at checkout. | |
$pmprogl_require_gift_code = array(10); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment