Last active
June 29, 2020 10:09
-
-
Save MaryOJob/9f74cbbaa2bc38fd6224c3de381af4b3 to your computer and use it in GitHub Desktop.
Already have Register Helper Fields Created and want to Add more fields to a new location on your checkout page? - Use this script to Add to existing Customization
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 // DO NOT COPY THIS LINE TO AVOID A FATAL ERROR. Copy from below please. | |
/** | |
* Please only add this script if you have previously added a custom field to your Register Helper and you need to add another field | |
* You would not be redeclaring the function seeing as you have done that already in your previous code snippet | |
*/ | |
// You can copy and paste the below into your previous snippet, then update it with your own information | |
$fields[] = new PMProRH_Field( | |
'bree_field', // input name, will also be used as meta key | |
'text', // type of field | |
array( | |
'label' => 'Bree Field', // custom field label | |
'profile' => true, // show in user profile | |
'required' => false, // make this field required | |
'memberlistscsv' => true, //includes in CSV export | |
) | |
); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment