update_usermeta
should work for this:
update_usermeta( $user->id,'user_url','http://someurl' );
But, if it doesn’t, maybe check out wp_update_user
:
http://codex.wordpress.org/Function_Reference/wp_update_user
Thanks! The link you provided is what I was looking for, so I’ll see if that works.
The example you give for update_usermeta is what the Register Plus script uses, but as far as I can tell, WordPress’s native register / profile scripts store user_url in the user table, not in the usermeta table.
Maybe something like this then:
wp_update_user( array( 'user_url' => 'http://some-url' ) );
Thanks so much, greenshady. This information was difficult to find, and I had some trouble with it, because my understanding of arrays is not very good.
Anyway, I got it to do what I wanted — fix a bug in the Register Plus plugin that was writing the website to the wrong table (usermeta instead user table), and thus making it impossible to update the website by editing the user profile.
I posted my correction of the bug in this thread:
http://wordpress.org/support/topic/246570
(Actually, if you can see any problems — such as security issues — with what I posted, please let me know…)
Thanks again!