The question is simple. I have a phone number that I want to update in the user profile using update_user_meta:
$update = update_user_meta( 15, 'billing_phone', '79998887766' );
if ( false === $update ) {
echo 'not updated';
} else {
echo 'updated';
}
As a result, the phone number is updated successfully, but the function returns false:
not updated
This function should return (int|bool) Meta ID if the key didn't exist, true on successful update, false on failure. I can't figure out what the reason is.