I am using the API code of WordPress to update some fields of user profiles but I am having some problems.
When I try to save information, it is not updating unless I click twice. For example for user called user3465
For example :
$user=get_user_by('login',"user3465"); wp_set_password(''.$new_password.'',$user->ID); update_user_meta($user->ID, 'user_email', "".$new_email."" );
I launch form and load new data in database, but I must launch another time, to see the data change.
Why is this ?