I do have register helper, though it says it’s not compatible with WP current build…. Payment Gateway is PayPal express.
I have a pmpro-customizations folder with a pmpro-customizations.php file which contains the following code that I got from Jason years ago:
<?php
/*
Plugin Name: PMPro Customizations
Plugin URI: https://www.paidmembershipspro.com/wp/pmpro-customizations/
Description: Customizations for my Paid Memberships Pro Setup
Version: .1
Author: Paid Memberships Pro
Author URI: https://www.paidmembershipspro.com
*/
//Now start placing your customization code below this line
function my_pmpro_fields()
{
$fields = array();
$fields[] = new PMProRH_Field(“first_name”, “text”, array(“size”=>40, “label”=>”First Name”, “profile”=>true, “required”=>true));
$fields[] = new PMProRH_Field(“last_name”, “text”, array(“size”=>40, “label”=>”Last Name”, “profile”=>true, “required”=>true));
$fields[] = new PMProRH_Field(“address1”, “text”, array(“size”=>40, “label”=>”Address 1”, “profile”=>true, “required”=>true));
$fields[] = new PMProRH_Field(“address2”, “text”, array(“size”=>40, “label”=>”Address 2”, “profile”=>true, “required”=>true));
$fields[] = new PMProRH_Field(“city”, “text”, array(“size”=>40, “label”=>”City”, “profile”=>true, “required”=>true));
$fields[] = new PMProRH_Field(“state”, “text”, array(“size”=>40, “label”=>”State”, “profile”=>true, “required”=>true));
$fields[] = new PMProRH_Field(“zip”, “text”, array(“size”=>40, “label”=>”Zip”, “profile”=>true, “required”=>true));
foreach($fields as $field)
pmprorh_add_registration_field(“after_password”, $field);
}
add_action(“init”, “my_pmpro_fields”);
?>