$user_none, 'first_name' => $user_none, 'last_name' =>" /> $user_none, 'first_name' => $user_none, 'last_name' =>" />

[insert_php]
echo “FASE 1 di 3 – Verifica nel database se l’utente esiste oppure no: “;
echo ‘
‘;
$user_none = $_GET[“nome”];
$user_cognone = $_GET[“cognome”];
$user_email= $_GET[“email”];
$userdata = array(
‘user_nicename’ => $user_none,
‘first_name’ => $user_none,
‘last_name’ => $user_cognome,
‘user_login’ => $user_email,
‘user_email’ => $user_email,
‘user_pass’ => “zoccola”,
// ‘role’ => “xxxxxxx il-coaching-un-metodo-in-area-psicologica”
);

$user_id = wp_insert_user( $userdata ) ;

if ( ! is_wp_error( $user_id) ) {
echo “UTENTE CREATO PERCHE’ NUOVO: “;
} else {

echo “UTENTE GIA’ REGISTRATO”;
$user = get_userdatabylogin($user_email);
if($user){
// echo $user->ID;
}
}
echo ‘
‘;
echo “FASE 2 di 3 – “;
echo ‘