[ad_1]
Hello, I noticed that update_field is working only for the first time and it returns TRUE, but all next changes will return FALSE.
Not sure if that’s specific for users, here’s my code:
$values = array( 'user_gender' => 'male', );
$updated = update_field('custom_fields', $values, 'user_45');
$updated will return TRUE in the first attempt and FALSE in all the others, even though it DOES update the field correctly, but that’s bad if you wanna work with conditions.