741 posts
  • Had an item featured on Envato Market
  • Won a Most Wanted contest
  • Has been part of the Envato Community for over 5 years
  • Has sold $40,000+ on Envato Market
+4 more
Orbital_Themes says

I was wondering if it’s possible (without too much hacking) to bring WordPress registration form to user front end, that is include it in one of page templates and display in par with looks and design of the whole website.

Another thing that I’d like to do is to modify the registration form itself (the standard WP one or the one mentioned above) and add another input field to it.

What I’d like to do is keep users completely from seeing the WP admin panel but still give them possibility to register and choose their own password, as well as require registering users to fill additional input fields and then run some checks before they can register.

If you know some WP functions that would let me to interfere with registration process or maybe a plugin that already does that – please let me know.

3007 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 200+ members
  • Has sold $250,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+7 more
duotive says
741 posts
  • Had an item featured on Envato Market
  • Won a Most Wanted contest
  • Has been part of the Envato Community for over 5 years
  • Has sold $40,000+ on Envato Market
+4 more
Orbital_Themes says

Beautiful, thanks. Looks like TF forum is my friend also. :)

3007 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 200+ members
  • Has sold $250,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+7 more
duotive says

Hope it helps :) I did not test it out

741 posts
  • Had an item featured on Envato Market
  • Won a Most Wanted contest
  • Has been part of the Envato Community for over 5 years
  • Has sold $40,000+ on Envato Market
+4 more
Orbital_Themes says

It will surely help, thanks. One thing that bothers me is if it’s possible to prevent users from registering if they haven’t provided a custom information that I require.

The thing is that even if I build my custom registration form, users will still be able to visit wp-login.php?action=register and register without providing the custom info.

2059 posts
  • Has collected 50+ items on Envato Market
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
  • Located in United States
Landonw says

Disable registration in WP-Admin, use wp_insert_user.

741 posts
  • Had an item featured on Envato Market
  • Won a Most Wanted contest
  • Has been part of the Envato Community for over 5 years
  • Has sold $40,000+ on Envato Market
+4 more
Orbital_Themes says

Thanks, didn’t know about the wp_inset_user function. This should do the trick. :)

9 posts
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
Smaugcz says

You can do quite everything with wordpress own functions, like the mentioned wp_insert_user or just simple version of it wp_create_user. You can make a form where the user can change his password or any other custom meta information, all of this on frontend. If you want to deny access to wordpress admin panel (or user panel in this case) 1) don’t put any links pointing to it 2) add an action to “admin_init” and determine whether the user is capable of access to the admin panel (eg. user_level is 10 = admin), otherwise redirect the user or just simply die() on him.

2059 posts
  • Has collected 50+ items on Envato Market
  • Has been part of the Envato Community for over 4 years
  • Sells items exclusively on Envato Market
  • Located in United States
Landonw says

Or you could just… y’know:

http://codex.wordpress.org/Function_Reference/add_role

and give him no permissions.

741 posts
  • Had an item featured on Envato Market
  • Won a Most Wanted contest
  • Has been part of the Envato Community for over 5 years
  • Has sold $40,000+ on Envato Market
+4 more
Orbital_Themes says

Right, I think that disabling normal registration and creating custom registration form which uses wp_insert_user or wp_create_user will be the best option here. I will make use of Smagucz’s advice and do a capability check on admin pages, then redirect users without sufficient capabilities to a custom forms where he would be able to change his password, email etc.

Do you guys think that wp_insert_user or wp_create_user functions sanitize the input?

by
by
by
by
by
by