$d['first_name'],
'last_name' => $d['last_name'],
'user_login' => $d['user_login'],
'user_email' => $d['user_email'],
'user_pass' => $d['user_pass'],
'user_registered' => date('Y-m-d H:i:s')
));
if (is_wp_error($user)) {
$err = $user->get_error_message();
} else {
$msg = 'Vous êtes maintenant inscrit.';
$header = 'From : ' . get_option('admin_email') . "\r\n";
wp_mail($d['user_email'], 'Inscription réussie', $msg, $header);
$d = array();
wp_signon($_POST);
header('Location:profil');
}
}
}
}
?>