Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Step 1 - Register Helper: A step-by-step guide on creating custom fields.
<?php //Do not copy this tag to your PMPro Customizations Plugin.
* Adds custom fields to Paid Memberships Pro checkout page.
* Requires Paid Memberships Pro and the PMPro Register Helper Add On.
* Add this code to a PMPro Customizations Plugin or the Code Snippets plugin.
function pmpro_add_fields_to_checkout(){
//don't break if Register Helper is not loaded
if(!function_exists( 'pmprorh_add_registration_field' )) {
return false;
$fields = array();
//add the fields to default forms
foreach($fields as $field){
'checkout_boxes', // location on checkout page
$field // PMProRH_Field object
add_action( 'init', 'pmpro_add_fields_to_checkout' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment