Skip to content

Instantly share code, notes, and snippets.

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