Blog / plugins / WordPress Admin Approval based on User Role with Profile Builder

WordPress Admin Approval based on User Role with Profile Builder

Adrian Spiac
Last Updated: 23/09/19

Admin Approval for new users is one of those must have features for every website that allows user registration. Sometimes, deciding who gets to be a user on your website is a good way to keep your user base clean and fight user registration spam.

Taking it further, there are times when you need to approve only certain types of users (user roles) and allow the rest to register without any approval. It’s when admin approval based on user role comes into play.

When to use Admin Approval based on User Role?

A common scenario is when you need to allow registration of two distinct types of users, let’s say Consumers and Service Providers. Each user group should have a unique role, profile type and a separate registration page with different fields.

Note: Custom user roles can easily be created using the Roles Editor module from Profile Builder.

Setting up multiple registration forms with different user fields and also making sure users who register through different forms will get different roles assigned is something we already discussed in this tutorial.
The Multiple Registration Forms module for Profile Builder was designed with this scenario in mind.

The next step would be to figure out how to set up Admin Approval based on User Role, so that only Service Providers need to be approved by an administrator. Consumers should skip approval upon registration.

Setting up Admin Approval based on User Role with Profile Builder

Profile Builder allows you to enable admin approval per user role.

After installing the plugin, simply navigate to the “General Settings” tab and activate Admin Approval. Once active, you’ll be able to select the user roles which will require admin approval upon registration. In our case, Service Providers.

admin_approval_based_on_user_role

Click “Save Changes” and you’re done.

Service Providers will now need to have their account approved by an administrator. All users requiring admin approval will be listed under the “Admin Approval” page (Users > All Users > Admin Approval) from where they can easily be approved/unnaproved by an admin.

admin_approval_based_on_user_role_1

Note: For creating custom user roles tied to a subscription plan and even accepting paid accounts, you can use Paid Member Subscriptions. It’s free and fully compatible with Profile Builder.

Admin Approval feature is part of Profile Builder Hobbyist or Pro

.

From the blog

Related Articles

Profile Builder Update: No More Profile Builder Hobbyist?

Author: Flavia Mezzetti
Last Updated: April 26th, 2023

If you’re already a Profile Builder user, you might have noticed some changes around here in the past few weeks. And that’s especially if you’ve purchased the Hobbyist version of Profile Builder. And you’d be right! Some changes did take place within the plugin, and thus, that’s what we’ll talk about in this blog post, […]

Continue Reading
buddypress_pb_banner_01

How to Build Online Communities Using Profile Builder & BuddyPress

Author: Patricia Borlovan
Last Updated: August 15th, 2023

Building a WordPress community website can be a great idea not only because you can control the experience of the user, manage SEO and inbound traffic, but also because I think a community is more about nurturing a constant, active presence and happy experience. If we speak about the integration between our Profile Builder & […]

Continue Reading
The bbPress and Profile Builder integration add-on.

How To Extend bbPress User Profiles with Profile Builder

Author: Patricia Borlovan
Last Updated: July 9th, 2024

Letting users customize their profiles is a great way to encourage them to spend more time on your forum website and interact with each other. However, this is not a feature either WordPress or bbPress offers by default. WordPress supports user registration, but provides very little functionality in terms of profile customization. Fortunately, there are […]

Continue Reading

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.