Table of Contents
Description
Collect custom form fields at membership checkout and on the user profile. User fields can be added to the membership checkout page or captured on the user’s frontend profile or “Edit Profile” screen in the WordPress admin.
This plugin also allows you to restrict membership registration for a list of approved email addresses or usernames.
Read the full documentation for the Register Helper Add On
Official Paid Memberships Pro Add On
This is an official Add On for Paid Memberships Pro, the most complete member management and membership subscriptions plugin for WordPress.
Supports Multiple Field Types
Using Register Helper, you can add a variety of field types to capture additional information about your members. Fields can be customized by the member’s selected or active membership level. Supported field types include:
- Text and Textarea
- Select and Select2 (multi-select)
- Checkbox, Grouped Checkboxes, and Radio Select
- Date
- File Upload
- Read-only
- HTML (generates any desired HTML)
- Hidden
Any registered field can be a conditional field. These fields use JavaScript to dynamically hide or show based on another field’s value.
Read the documentation on Adding Fields
Adding Fields to Membership Checkout
Register Helper allows you to add fields to a variety of places within the Membership Checkout page using Paid Memberships Pro. Fields can be added to existing locations including:
- after_username
- after_password
- after_email
- after_captcha
- after_billing_fields
- before_submit_button
If you would like to add fields to the profile only, specify the ‘just_profile’ location.
Adding New Sections to Membership Checkout
You can add a new box or ‘section’ to the Membership Checkout form using the ‘checkout_boxes’ feature. Your newly created box includes a title, description and specified location.
Read the documentation on Checkout Boxes
Restrict Membership Checkout by Email Address or Username
Add your list of custom “approved” email addresses or usernames to the “Restrict by Email” or “Restrict by Username” field on the Memberships > Settings > Membership Levels > Edit Level admin page.
Installation
- Upload the
pmpro-register-helper
directory to the/wp-content/plugins/
directory of your site. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- Configure your fields using custom code. View the full documentation on adding fields and check out this video demo on Register Helper set up.
Example Code for adding a Company field
Below is a sample code that adds a “Company” field. You can add custom field code to your site by creating a custom plugin or using the Code Snippets plugin available for free in the WordPress repository. Read this companion article for step-by-step directions on either method.
function my_pmprorh_init( ) {
// Don't break if Register Helper is not loaded.
if( ! function_exists ( 'pmprorh_add_registration_field' ) ) {
return false;
}
//define the fields
$fields = array();
$fields[] = new PMProRH_Field (
'company',
'text',
array(
'label' => 'Company',
'profile' => true,
));
// Add the fields into a new checkout_boxes are of the checkout page.
foreach ( $fields as $field ) {
pmprorh_add_registration_field(
'checkout_boxes', // location on checkout page
$field // PMProRH_Field object
);
}
}
add_action( 'init', 'my_pmprorh_init' );