Hello @uriahs-victor,
Administrators can edit and approve any profile from the front end. See doc How to edit a user’s profile page & fill out empty fields
You can create a role with permissions and capabilities that allow users with this role editing and approving other members from the frontend, but does not allow them to access the wp-admin area. See doc How to set up a user role that can edit other member without wp-admin access
Regards
Hello @uriahs-victor
At this time UM does not have this feature but it can be achieved with some customization.
I wont be able to help you with full customization but I can give you some hint on how you can achieve it.
You can add a custom profile tab for the user role you want to allow to approve the users. You can go through this article for adding a custom tab.
With in the custom tab, list all of the users with pending status and show “Approve” and “reject” button. You can use this code to query users with “pending” status.
$pending_users = get_users([
'meta_key' => 'account_status',
'meta_value' => 'awaiting_admin_review',
'meta_compare' => '=',
]);
And based on clicked button, you will have to perform action, here are the methods you can use to reject or approve a user:
um_fetch_user( $user_id );
UM()->user()->approve(); // to approve the user
UM()->user()->reject(); // to reject the user
Hi @uriahs-victor
This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.
Please feel free to re-open this thread if any other questions come up and we’d be happy to help. 🙂
Regards
Thank you, I was able to come up with a workflow which works ok