Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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?

share|improve this question

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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