Analysis of the user table (Function) WordPress tables of data

Analysis of the data table

wp_users

Figure I

wp_usermeta

 

 

User system is relying on the two tables to achieve.

Specific Case Analysis

Add user

 

 

 

 After the addition is successful, we will see that the data are respectively test001 in wp_users and wp_usermeta table.

wp_users

Figure IV

wp_usermeta

Figure V

wp_users Field analysis:
ID (User ID)
USER_LOGIN (user login account name)
user_pass (user password)
user_nicename (Nickname)
user_email (user mailbox)
user_url (User blog the URL of)
user_registered (Member)
user_activation_key (activated)
user_status (state )
display_name (display name)

wp_usermeta Field Analysis:
umeta_id (increment user metadata table ID)
user_id (user ID)
meta_key (metadata key)
meta_value (metadata values)

Typically these will include the user must add data, as shown:
Figure VI

umeta_id user_id and not for analysis, and well understood.

Mainly to talk about the value of meta_key which in the end is what it means (some do not know what that means, do not explain, understand and then add other follow-up)?
The Nickname (Nickname)
first_name (user name)
last_name (user name)
the Description ( personal explanation)
rich_editing (write files without using the visual editor, the default is true, meaning the use of visual editor)
comment_shortcuts enabled (when management reviews keyboard shortcuts)
admin_color (management interface color)
the use_ssl (whether ssl)
show_admin_bar_front (whether management panel)
locale (sites use what language, such as Chinese or English)
wp_capabilities (permission)
wp_user_level (user level)
dismissed_wp_pointers

With the increase in user operation meta_key follows:
session_tokens (session token, login will have to exit clears, I think this user is offline feature is implemented)
wp_user-Settings (user settings)
wp_user-Settings-Time (User set time of the operation)

Guess you like

Origin www.cnblogs.com/youcong/p/11440628.html