[wp-trac] [WordPress Trac] #12582: user_registered action suggestion
WordPress Trac
wp-trac at lists.automattic.com
Thu Mar 11 11:10:48 UTC 2010
#12582: user_registered action suggestion
-------------------------+--------------------------------------------------
Reporter: roxaz | Owner: westi
Type: enhancement | Status: new
Priority: normal | Milestone: Unassigned
Component: Plugins | Version: 2.9.2
Severity: normal | Keywords: action user_registered
-------------------------+--------------------------------------------------
I am developing theme that should include user login / registration (so we
dont have to see wp-login.php ever again).
Now for login it was easy - with the help wp_login_url user is redirected
back to whatever page we need after login.
To achieve same thing for registration i added new action in wp-login.php
{{{
$errors = register_new_user($user_login, $user_email);
do_action('user_registered', array($user_login, $user_email, $errors));
}}}
using this action now i can make wp-login.php redirect user to main page
and display errors there.
Maybe this could be included in wordpress? Or maybe wp_login_url type
function that can redirect user wherever needed? I would personally go
with action as it gives much more freedom.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12582>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list