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
| function my_pmprorh_init() | |
| { | |
| //don't break if Register Helper is not loaded | |
| if(!function_exists("pmprorh_add_registration_field")) | |
| { | |
| return false; | |
| } | |
| //define the fields | |
| $fields = array(); | |
| $fields[] = new PMProRH_Field( |
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
| function my_pmprorh_init() | |
| { | |
| //create a checkout box | |
| pmprorh_add_checkout_box("mailing_info", "Mailing Details", "This description is optional"); | |
| //don't break if Register Helper is not loaded | |
| if(!function_exists("pmprorh_add_registration_field")) | |
| { | |
| return false; | |
| } | |
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 | |
| // Copy Lines 5 - 32 to your functions.php of your theme or custom plugin | |
| function my_pmprorh_init() | |
| { | |
| //don't break if Register Helper is not loaded | |
| if(!function_exists("pmprorh_add_registration_field")) | |
| { | |
| return false; |
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 | |
| //copy lines 5 - 14 into your active theme's functions.php or custom plugin. | |
| function my_pmpro_remove_dashboard_widget(){ | |
| //check if user is not admin, then remove meta boxed | |
| if( !current_user_can('manage_options') ) { | |
| //remove default WP dashboard activity | |
| remove_meta_box('dashboard_activity', 'dashboard', 'normal'); | |
| //remove PMPRO dashboard activity |
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 | |
| //copy lines 5-29 into your active theme's functions.php or custom plugin | |
| function my_pmprorh_init() | |
| { | |
| //don't break if Register Helper is not loaded | |
| if(!function_exists("pmprorh_add_registration_field")) | |
| { | |
| return false; |
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 | |
| //Copy from line 5 down and add to custom plugin/active theme's functions.php | |
| function my_pmprorh_init() | |
| { | |
| //don't break if Register Helper is not loaded | |
| if(!function_exists("pmprorh_add_registration_field")) | |
| { | |
| return false; |
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 | |
| //copy lines 5 down into your custom plugin (http://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/) | |
| function pmproc_custom_countries( $pmpro_countries ){ | |
| //create a list of countries you would like to show | |
| $pmpro_countries = array( | |
| //refer to https://github.com/strangerstudios/paid-memberships-pro/blob/v1.7.8.1/includes/countries.php#L259 for a list of countries | |
| 'AD' => 'Andorra', | |
| 'AE' => 'United Arab Emirates', |
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 | |
| //copy lines 5 onwards into your 'PMPro Customizations' plugin - http://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
| function pmproc_change_my_text( $translated_text, $text, $domain ) { | |
| switch ( $translated_text ) { | |
| case 'View and Print Membership Card' : |
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 | |
| //Copy lines 5 onwards into your custom PMPro plugin -> http://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
| function pmproc_change_level_text( $translated_text, $text, $domain ) { | |
| if( pmpro_hasMembershipLevel() && is_user_logged_in()){ | |
| switch ( $translated_text ){ | |
| case 'Select' : |
OlderNewer