- Wordpress Web Application Development(Third Edition)
- Rakhitha Nimesh Ratnayake
- 144字
- 2021-07-09 19:52:34
User-related tables
This category consists of two tables that contain the user-related information of your application. Let's take a look at the relationship between user-related tables before moving onto the explanation:
![](https://epubservercos.yuewen.com/E09B54/19470408608963406/epubprivate/OEBPS/Images/image_03_001.png?sign=1739402855-vn30lD1o4zTpfsVujK6Bgb7ibaTdXkFa-0-1eda3ff53847c74360bb2bf1a423959e)
The two tables shown in the preceding diagram are as follows:
- wp_users: All the registered users will be stored in this table with their basic details, such as name, e-mail, username, and password.
- wp-usermeta: This table is used to store additional information about the users as key-value pairs. User roles and capabilities can be considered as the most important user-specific data of this table. Also, we have the freedom to add any user-related information as new key-value pairs.
Throughout this chapter, we'll be referring to WordPress tables with the default prefix of wp_. You can change the prefix through the installation process or by manually changing the wp-config.php file in the root directory.