[wp-hackers] How to use the edit_user_profile action?
Owen Winkler
ringmaster at midnightcircus.com
Sun Jan 15 21:54:22 GMT 2006
David Coppit wrote:
> I'm writing a plugin that has user-specific configuration. Using the
> "edit_user_profile" action I can append a form to the bottom of the edit
> user page.
>
> However, the code short-circuits the update action, so that my plugin
> never has a chance to update its user config. That is,
> wp-admin/user-edit.php says:
<snip>
> How am I supposed to update my options? Do we need a new action? i.e.:
Nah, just do your update in an earlier hook (say, 'init'), checking for
the page that they're submitting in $_SERVER['REQUEST_URI'] and a value
from your form.
Owen
More information about the wp-hackers
mailing list