The databaseis the primary location for storing application data. WordPress provides a built-in database with pre-defined tables, compared to traditional web applications, where the database is designed from scratch. Getting used to the pros and cons of the existing database table is the key to developing quality themes and plugins.
In this chapter, we will learn the power and limitations of the existing database tables in Wordpress. You will get an overview of existing database tables and their role, while understanding how data is managed in common functions such as post creation, user creation, media uploads, and so on. You will also learn the uses of custom tables in development, and using the query functions to retrieve data.
In this chapter, we will cover the following topics:
- Understanding the role of default database tables
- Tracking and understanding database usage of primary features
- Creating and managing custom tables