spannerz
Forum Replies Created
-
Forum: Plugins
In reply to: [Import and export users and customers] User roles not updatingI have never had the user roles update, with a Roles column in my CSV.
Thanks for the reply, Andrew.
Most useful.
Do I just need to set the True to False on line 1083 in includes\functions.php for it to block the Import process cancellations?
If a member visits the site and requests a cancellation, then this functionality is fine, so can I leave the Profile and Gateway pages alone?
Just FYI I only use Paypal as a gateway.
I have just posted another query regarding this whole process in another thread, if you could possibly take a look I’d be most appreciative.
Regards,
SimonAfter reading up a bit on how Filters work, my code in pmpro_member_history now says this:
$membership_level_capability = apply_filters( 'pmpro_edit_member_capability', 'edit_user' );And I now see the Member History in the User Profile Admin.
Next is to find out where the Membership Level section gets it’s permission from and change that too.
Needing ‘Manage Options’ capability for this should not be necessary, since that opens up far too many other options in the wp Admin Console.
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.
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.This email may be generated by WordFence or Defender if you have those plugins installed, activated and configured.
Wordfence notifies me when an Admin logs in, when the Lost Password feature is used etc.
These can be turned off in the Wordfence Notification Settings.Hope this helps.