Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save MaryOJob/9f74cbbaa2bc38fd6224c3de381af4b3 to your computer and use it in GitHub Desktop.
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
<?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