[ad_1]
I need to create a registration form that is locked and needs admin approval upon registering. I also need one of its custom fields to be validated whether the data exists in the specific column of a user-created table in the database.
​
Is it possible to do this efficiently in WordPress, if so can anyone provide me with some resources? (All search terms in google just leads me to plug-ins which does not serve my purpose)
Thank you!
[ad_2]
Sure, but it’ll probably require a decent chunk of coding to get done.
My own (quick and dirty) way to do it, would be to:
1. Create a new user role, without any permissions, that’ll be the default user role for new users.
2. Create a hook that automatically logs people out, if they log in while having this role. Plus points if you create a custom message detailing that they’re awaiting admin validation
3. Create a validation form for admins, in the backend panel. Include whatever logic you need to check your custom meta field.