Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
<?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
You can’t perform that action at this time.