Support » Fixing WordPress » WPDB var_dump

  • when I do a var_dump($wpdb), it outputs all the stuff I’d expect it to output as well as the content of all of my Pages.


    could someone explain this behavior? I’m trying to understand how the $wpdb object works.

Viewing 3 replies - 1 through 3 (of 3 total)
  • skippy



    When are you calling the var_dump()? It’s likely holding cached data from the last SQL query.

    Ryan Boren


    WordPress Dev

    last_result holds the result of the last query. The last query before the var_dump was likely a query for the pages.

    Well, it’s exciting, isn’t it.

    I had no idea so much was going on.

    now that I figured out how to use get_object_vars….

    the world is mine.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WPDB var_dump’ is closed to new replies.