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 | |
| function my_pmpro_adjustable_level_cost($level) | |
| { | |
| // Specify the monthly and annual levels | |
| $monthly_levels = array(1, 2); | |
| $annual_levels = array(3, 4); | |
| // Set the field name here | |
| $field_name = 'field_name'; | |
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 | |
| function my_pmpro_adjustable_level_cost($level) | |
| { | |
| // Set the field name here | |
| $field_name = 'field_name'; | |
| // Set the available field options and their extra fee here | |
| $options = array( | |
| 'option1' => 100, | |
| 'option2' => 200, |
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 | |
| // Restrict access to certain pages based on level group: | |
| function my_pmpro_custom_redirects() { | |
| // The Level ID's associated with each "Level Group" | |
| $group_one = array('1', '2', '3'); | |
| $group_two = array('4', '5', '6'); | |
| // The pages to be restricted | |
| $page_names = array('group-1-access', 'group-2-access'); |
NewerOlder