Hi @spannerz
Thank you for using Paid Memberships Pro.
I’ve overlooked the Register Helper code base and the Membership Manager’s should be able to view Register Helper fields on the profile page.
Please note that we are not allowed to support premium/paid products on ww.wp.xz.cn (even if they are downloaded for free from Github). If you need further assistance troubleshooting this, please open a ticket on http://www.paidmembershipspro.com
Thank you for understanding.
Hi,
I have fixed the issue.
Having looked through the code pages, I find this in pmpro_register_helper.php
function pmprorh_getProfileFields($user_id, $withlocations = false)
{
global $pmprorh_registration_fields;
$profile_fields = array();
if(!empty($pmprorh_registration_fields))
{
//cycle through groups
foreach($pmprorh_registration_fields as $where => $fields)
{
//cycle through fields
foreach($fields as $field)
{
if(!is_a($field, ‘PMProRH_Field’) || !pmprorh_checkFieldForLevel($field, “profile”, $user_id))
continue;
if(!empty($field->profile) && ($field->profile === “admins” || $field->profile === “admin” || $field->profile === “only_admin”))
{
if( current_user_can( ‘manage_options’ ) || current_user_can( ‘pmpro_membership_manager’ ) )
{
if($withlocations)
$profile_fields[$where][] = $field;
else
$profile_fields[] = $field;
}
}
elseif(!empty($field->profile))
{
if($withlocations)
$profile_fields[$where][] = $field;
else
$profile_fields[] = $field;
}
}
}
}
return $profile_fields;
}`
In the members plugin, that grants the Role options etc, the option for “pmpro_membership_manager” was not present, so I’ve added it as a Custom Option and granted permission to my Membership Admins role.
Now, all the fields I have added via RH show in the User / Member Admin pages.
Hope this helps anyone else, too.
Well, I thought I’d fixed it, but not completely.
User Profile edit Page does not show Member Level or History – the current and past Orders – for my Membership Admins.
If I grant “manage Options” to the Membership Admins role, they get far too much access.
Thanks for the feedback, I think moving forward an easier way would be a custom solution using the show_user_profile and edit_user_profile hooks.
The Register Helper Add On stores the data as user meta. I have added this to our internal development schedule to support a filter for better roles/capabilities and not just admins.
If you need help in implementing this custom solution, please feel free to reach out to a local WordPress developer or post to jobs.wordpress.net
Thank you for understanding.