wp_insert_user keeps echoing values
-
This is bugging the heck out of me. Essentially I’ve narrowed the issue down to one line of code:
$user_id = wp_insert_user ($userdata);
From what I can tell nothing should be echoed here, but I should get the user_id returned from the wp_insert_user function. What I’m getting though is the email and other values echoed back.
I’ve since looked at the user.php file and targeted the issue at line 1371, here’s the code there
if ( $update ) do_action('profile_update', $user_id, $old_user_data); else do_action('user_register', $user_id);
I’m at a complete loss and this is breaking my JSON response so I need to figure it out soon. My ajax returns 200 with this response:
email value {success:true, field:value, …}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘wp_insert_user keeps echoing values’ is closed to new replies.