I've wrote some custom SQL queries inside a class method and noticed they seem to work if I hook the method to the
wp action. If I hook to the
plugins_loaded action, they don't seem to work.
At what point during a typical request does the
$wpdb object become available?