741 posts
  • Has been a member for 5-6 years
  • Sold between 50 000 and 100 000 dollars
  • Exclusive Author
  • Most Wanted Bounty Winner
  • Bought between 50 and 99 items
  • Poland
  • Referred between 10 and 49 users
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
  • Author had a File in an Envato Bundle
  • Bought between 1 and 9 items
  • Elite Author
  • Europe
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 100 and 199 users
+2 more
duotive says
741 posts
  • Has been a member for 5-6 years
  • Sold between 50 000 and 100 000 dollars
  • Exclusive Author
  • Most Wanted Bounty Winner
  • Bought between 50 and 99 items
  • Poland
  • Referred between 10 and 49 users
Orbital_Themes says

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

3007 posts
  • Author had a File in an Envato Bundle
  • Bought between 1 and 9 items
  • Elite Author
  • Europe
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 100 and 199 users
+2 more
duotive says

Hope it helps :) I did not test it out

741 posts
  • Has been a member for 5-6 years
  • Sold between 50 000 and 100 000 dollars
  • Exclusive Author
  • Most Wanted Bounty Winner
  • Bought between 50 and 99 items
  • Poland
  • Referred between 10 and 49 users
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.

2048 posts
  • Has been a member for 4-5 years
  • Bought between 50 and 99 items
  • Exclusive Author
  • United States
Landonw says

Disable registration in WP-Admin, use wp_insert_user.

741 posts
  • Has been a member for 5-6 years
  • Sold between 50 000 and 100 000 dollars
  • Exclusive Author
  • Most Wanted Bounty Winner
  • Bought between 50 and 99 items
  • Poland
  • Referred between 10 and 49 users
Orbital_Themes says

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

9 posts
  • Exclusive Author
  • Has been a member for 4-5 years
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.

2048 posts
  • Has been a member for 4-5 years
  • Bought between 50 and 99 items
  • Exclusive Author
  • 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
  • Has been a member for 5-6 years
  • Sold between 50 000 and 100 000 dollars
  • Exclusive Author
  • Most Wanted Bounty Winner
  • Bought between 50 and 99 items
  • Poland
  • Referred between 10 and 49 users
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