WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I like to have login and password recovery managed by my own forms and embed them into my theme.

I'm using the well written Jeff Farthing's plugin "Theme My Login" on some of my projects. But I would like to write my own custom functions and avoid the use of a plugin.

However I would also like to learn more on the process of making custom forms for logging in. While I might spending some time dissecting the plugin as suggested in an answer to a similar question (How to create custom LOGIN and REGISTRATION forms?), I would like to know if there's any good tutorial, wiki or codex page which I might have missed that digs more or less deeply into user forms writing to have a better understanding of the subject.

I'd rather have the answer "no, there isn't any" than just "stick to the plugin", which is kinda obvious and repeated - after all, me and some others reading might have missed something different and new such as a well written article or tutorial.


share|improve this question

closed as off-topic by toscho Oct 12 '13 at 14:45

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

Do you ask for a list of links? That would be a shopping question. Please ask for actual problems you have. – toscho Jul 31 '12 at 5:54
I'll try not to be obvious then: The medium is the message. – brasofilo Jul 31 '12 at 7:03
Too bad this was closed. I was about to write an answer with additional information. Linking to Customizing Login and Registration, quoting the introductions, to give an insight of which hooks can be used. Furthermore linking to Administrative Actions to point to additional hooks. I'm thinking focusing on the I like to learn more part this should be valid enough. @toscho – ialocin Oct 12 '13 at 15:09
@ialocin Feel free to ask and answer another question that is more on topic than this one. There is even a badge for that. – toscho Oct 12 '13 at 15:13
Ok! I just done that: wordpress.stackexchange.com/questions/117631/… @toscho – ialocin Oct 12 '13 at 16:10
up vote 2 down vote accepted

Having done some research into Wordpress logins in the past, this is one of the few (possibly only?) tuts I could find where the author actually created a new login/register form.


Even so, he still uses the generic Wordpress wp-login.php code.

Re-coding the entire process is a big task. If you dig into theme-my-login you will see that it's a few thousand lines of code.

wp_update_user & wp_insert_user might get you started!

share|improve this answer
thanks gArn this is the sort of thing I was looking for and I failed to find using Google before... therefore I made a question here, thanks for getting to the point and sharing your resource with me (and the rest of the readers). Update: I gave a closer look, eventually doesn't cover everything and doesn't explain certain things I was looking for (well I guess I will have to dig and examine single articles in the codex more carefully), however it's sort of good that it uses the generic wp-login, I don't want to build something too complicated... maybe your link is a good starting point – unfulvio Jul 31 '12 at 17:10

Not the answer you're looking for? Browse other questions tagged or ask your own question.