Empty_user_login on wp_insert_user
-
I can’t see what I’m doing wrong.
`
$email=’[email protected]’;
$pass=wp_generate_password ( 12, false );
$user_id = wp_insert_user(
array(
‘user_login’ => $email,
‘user_pass’ => $pass,
‘first_name’ => $form->data[‘first_name’],
‘last_name’ => $form->data[‘last_name’],
‘user_email’ => $email,
‘display_name’ => $form->data[‘first_name’] . ‘ ‘ . $form->data[‘last_name’],
‘nickname’ => $form->data[‘first_name’] . ‘ ‘ . $form->data[‘last_name’],
‘role’ => ‘contributor’
)
);
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Empty_user_login on wp_insert_user’ is closed to new replies.