[wp-hackers] Updating a User Record via PHP?

DD32 wordpress at dd32.id.au
Tue Feb 3 00:24:43 GMT 2009


2009/2/3 Mike Schinkel <mikeschinkel at newclarity.net>:
> Hmm.  Is that "interface" documented anywhere?  Yes, you documented it in the paragraph below but I mean more details.

What "Interface" ? If you're refering to the userdata bizzo, Its basic PHP.

> That said, wouldn't you agree that wp-login.php is rather spaghetti code and very difficult to follow? I ended up refactoring to lots of little functions and passing around an array of state and it is not very easy to follow and interact with.

Yes, which was why i supported themes defining new login pages.

My advice is, If you want a themed login, Ignore wp-login.php all
together, except for POST'ing to. You should be able to look up the
user functions for anything else needed (ie. custom register fields,
you need to handle that yourself.. which is very easy to do.. since
its just accept-POST items, validate, Error, or call wp_insert_user()


More information about the wp-hackers mailing list