I was wondering if anyone could help me.
I have a plugin called Paid Memberships Pro.
There are some fields on the registration form that I want to make.
I read the code and found a place where it sets which fields are required and not required, as shown below:
$pmpro_required_billing_fields = array(
"bfirstname" => $bfirstname,
"blastname" => $blastname,
"baddress1" => $baddress1,
"bcity" => $bcity,
"bstate" => $bstate,
"bzipcode" => $bzipcode,
"bphone" => $bphone,
"bcountry" => $bcountry,
"bemail" => $bemail,
"CardType" => $CardType,
"AccountNumber" => $AccountNumber,
"ExpirationMonth" => $ExpirationMonth,
"ExpirationYear" => $ExpirationYear,
"CVV" => $CVV
);
$pmpro_required_billing_fields = apply_filters("pmpro_required_billing_fields", $pmpro_required_billing_fields);
$pmpro_required_user_fields = array(
"username" => $username,
"password" => $password,
"password2" => $password2,
"bemail" => $bemail,
"bconfirmemail" => $bconfirmemail
);
$pmpro_required_user_fields = apply_filters("pmpro_required_user_fields", $pmpro_required_user_fields);
This is in one of the plugins of the main plugin / paid member files-pro / preheaders / checkout.php
I want to be able to override this, but I do not want to edit the main files, is there a way that I can edit this through my functions.php files so that?
For example, add bfirstname and blastname to $ pmpro_required_user_fields?
Any help would be greatly appreciated, I was looking for how to do this, but I cannot figure out if this is possible.
:)