As in the title, how to programatically change user's login?
I wanted to use wp_insert_user
function, but it appears that when updating current user, it doesn't change their username. Should I use $wpdb->update
for that? If yes, how would code for changing username look like? What consequences would changing user login have, given that WordPress API doesn't allow changing usernames?