$wpdb->update() always need a second try
Short answer: You have a logical error in your code, this condition is wrong: if($wpdbupdate === 0) Replace it with: if($wpdbupdate >= 0) and it will work as expected. Long explanation: $wpdb->update method returns the number of rows updated, which is 1 in your case, so your code continues to the next block and status … Read more