Forked from MaryOJob/my_pmpro_add_addtional_field_to_register_helper.php
Last active
February 6, 2020 11:15
-
-
Save travislima/96b12b37543b51d58c5c22552e749a13 to your computer and use it in GitHub Desktop.
Already have Register Helper Fields Created and want to Add more fields to it - Use this script to Add to existing Customization
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 | |
/** | |
* Requires Paid Memberships Pro and the PMPro Register Helper Add On(https://www.paidmembershipspro.com/add-ons/pmpro-register-helper-add-checkout-and-profile-fields/) to be installed and activated in order to work | |
* Please only add this script if you have previously added a custom field to your Register Helper and you need to add another field. | |
*/ | |
$fields[] = new PMProRH_Field( | |
'field_name', // input name, will also be used as meta key | |
'text', // type of field | |
array( | |
'label' => "Label", // label of your field to be displayed | |
'required' => true, // make this field required | |
'profile' => true, // show in user profile | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment