I’m not sure why you need a custom registration system and couldn’t have hooked into the WP native one?
But if you are doing something custom/separate then you would be better to keep it that way and create a new table.
How can I use WP native functions for authentication? I don’t want to create a whole new code.
I have a custom form which uploads some data into a separate table. I want to allow edit/update feature for that data, for that I want to make a separate panel. Can I use WP functions to allow that modification through existing WP admin panel?
Please point me in a direction.
Its very difficult to comment without knowing what you are trying to achieve exactly.
From what you have said it kind of sounds like you might be better looking at some membership plugins.
Its a website where users will upload some images/text data through a custom made form.
Now I want to give them a panel where they can edit that data. For that I want an authentication system as well.
Do you get it now?
It sounds to me like you should still use the native WP user system for your purposes. You can expand the current registration form to collect more data, or redirect to your own version. The added data can still be added to your custom table, related to the users table via user ID.
This way all the user management is still with WP methods, making authentication and capability checks easy. You still can have your custom user data.
Alter what WP does to meet your needs, no need to reinvent the wheel.
Sounds like you could just use a theme pre built for that kind of thing like a a classifieds theme or similar? I’ve used classipress in the past and found it pretty good.
If I use WP registration system, will that allow users to login to wp dashboard? I don’t want to allow that. I want registration system just for a custom form that I made.
That it will by default, but there are ways to prevent that. Some possibilities that come to mind are limiting access by .htaccess rules or through an action hook like ‘admin_init’. If your front end uses AJAX, you need to still allow access to admin-ajax.php. Depending on who and how back end access is accomplished for admins and other legitimate users, .htaccess rules could be difficult to configure. Action hooks give much more flexibility and can access things like user capability.
I think working out access control is going to be much easier than reinventing user management. TBH, I don’t really see what harm occasional dashboard access will do. If your front end has no links to the back end and you use a custom log in form without such a link, hardly any user would even think to try to access the back end, and if they did so with limited capabilities, they would not see anything important and the only thing they could do is change certain things in their user profile.
Just a thought. The fact that you don’t want it is reason enough since it’s your site 🙂