Is it safe to access the underlying mysqli object from \wpdb for custom queries?
It depends on your definition of “safe”. Is the client always going to be your client? If not, then you’re writing code for them based on assumptions about their hosting environment and available technologies that may not always be under your control, and you may be unnecessarily complicating things for them in the future. $wpdb … Read more