Thread Starter
Chris
(@pdxcomm)
I also just noticed something strange in the “Users” section of the admin panel.
It lists the status of a new subscriber as “pending review”, but the quick menu under the user’s name gives me an option to “unapprove” the user.
Here are screenshots of both issues…
https://developers.ehrdata.com/wp-content/uploads/2022/01/Post-Registration-Screen.png
https://developers.ehrdata.com/wp-content/uploads/2022/01/Unapproved-Users-scaled.jpg
Hi @pdxcomm
Could you please provide screenshots of the Subscriber role settings? Please go to WP Admin > Ultimate Member > User Roles > Edit Subscriber role.
Regards,
Thread Starter
Chris
(@pdxcomm)
Hi @pdxcomm
Have you made any customization with UM hooks? If so, could you please share them here so we can review them?
Regards,
Thread Starter
Chris
(@pdxcomm)
The only snippet I have active is to pre-populate contact forms with user account info (shown below).
/* add custom user fields */
add_action('um_after_account_general', 'showUMExtraFields', 100);
function showUMExtraFields()
{
$id = um_user('ID');
$output = '';
$names = array(
'phone_number',
'company_name',
'job',
'street',
'zipcode',
'city'
);
$fields = array();
foreach( $names as $name )
{
$fields[ $name ] = UM()->builtin()->get_specific_field( $name );
}
$fields = apply_filters('um_account_secure_fields', $fields, $id);
foreach( $fields as $key => $data )
$output .= UM()->fields()->edit_field( $key, $data );
echo $output;
}
function auto_login_new_user( $user_id ) {
wp_set_current_user($user_id);
wp_set_auth_cookie($user_id);
}
add_action( 'user_register', 'auto_login_new_user' );
Hi @pdxcomm
Could you please try disabling the following code and test the issue again?
function auto_login_new_user( $user_id ) {
wp_set_current_user($user_id);
wp_set_auth_cookie($user_id);
}
add_action( 'user_register', 'auto_login_new_user' );
Regards,
Thread Starter
Chris
(@pdxcomm)
Looks like that fixed the registration message and the unapproved user access to gated pages. Thank you!
Any insight on the conflicting information here?
https://developers.ehrdata.com/wp-content/uploads/2022/01/Unapproved-Users-scaled.jpg
Hi @pdxcomm
That “Unapproved” link seems like created by another plugin. Do you have other UM extensions installed on your site?
Regards,
Thread Starter
Chris
(@pdxcomm)
I’m not using any of the offered UM extensions. I only ask because clicking on “approve” under the user’s name is a quick and easy way of approving new users…and it’s strange that the link is to UNAPPROVE a user who hasn’t been approved yet.
Thread Starter
Chris
(@pdxcomm)
BTW, if you’re still investigating, we just changed our URL to developer.ehrdata.com (singular version of developerS).
Thread Starter
Chris
(@pdxcomm)
…and I’m sorry, but I was wrong. I am also using the UM plugins for reCAPTCHA and Terms & Conditions.
Hi @pdxcomm
UM ReCaptch and Terms & Conditions doesn’t have a function that adds the ‘Unapprove’ and ‘Approve’ links. I suggest that you deactivate each plugin and see if one of the plugins is adding this link.
Regards,
Thread Starter
Chris
(@pdxcomm)
Those menu options under the name have always been there. It was a recent change for that to show “unapprove” instead of “Approve” for new submissions.
@pdxcomm
It lists the status of a new subscriber as “pending review”, but the quick menu under the user’s name gives me an option to “unapprove” the user.
You have a 2FA WP plugin adding the last three sub menus items at the WP User’s page:
2FA
See user’s activity
Unapprove
These items are not added by UM.
-
This reply was modified 4 years, 4 months ago by
missveronica.
Thread Starter
Chris
(@pdxcomm)
Thank you, @missveronicatv, it looks like those links are being triggered by WPForms…though they are handy when they’re working correctly!