• Resolved Uriahs Victor

    (@uriahs-victor)


    Is there a built-in way or maybe you can point me in the right direction to allow a certain user role to be able to approve registrations from the front end?

    If there’s a helper method to update the registration status or something of the sort, or if you can let me know how the workflow is setup then I can do the rest

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support yuriinalivaiko

    (@yuriinalivaiko)

    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

    Plugin Support Aswin Giri

    (@aswingiri)

    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
    Plugin Support andrewshu

    (@andrewshu)

    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

    Thread Starter Uriahs Victor

    (@uriahs-victor)

    Thank you, I was able to come up with a workflow which works ok

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Allow frontend user to approve signup requests’ is closed to new replies.