MyBB Central

Full Version: Some Questions: Registration Data
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi!

I want to obtain some user infos at the end of registration process, and before the redirect, and store them in variables to use in a function.

Can someone tell me if this code is right?

Code:
$plugins->add_hook("member_register_end", "newuser_data");

function newuser_data()
{
global $mybb, $fromreg, $db;

$user_id = $mybb->input['username'];
$user_pass = $mybb->input['password'];
$user_mail = $mybb->input['email'];        

}