• Hey guys,

    Seems like I’ve got a bit of a problem with wp_update_user. What I’ve got is some code to insert a new value into the db using wp_update_user, then afterwards I’m getting the current user information. Problem is the query to get the current user information seems to be 1 behind when it comes to the email address, everything else is fine however the email address is always incorrect. I refresh and the information is correct.

    Any ideas?

Viewing 16 replies (of 16 total)
  • Thread Starter ScottMcGready

    (@scottmcgready)

    Sorry man, the code is good but it just doesn’t seem to be working. It’s as if it’s still updating with the wp_get_current_user query is run…

    EDIT: to clarify, by “working” I mean it’s still not displaying the correct result until refresh as if it’s lagging 1 change behind.

Viewing 16 replies (of 16 total)
  • The topic ‘wp_update_user’ is closed to new replies.