Hi I'm just curious as to how Wordpress accesses it's own database, meaning that when I look into an admin page like link-manager.php or class-wp-list-table.php I don't see any occurences of $wpdb.

So again, is there an internal way that Wordpress queries its own DB?

If so, could I use that type of function to call my own queries?

1 Answer 1


WordPress uses only $wpdb to query db. This is the best practice to use $wpdb in WordPress. Read more about wpdb class in codex.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.