WordPress stores user data in the wp_users table, which is linked to the wp_posts and wp_comments tables:WordPress also stores user data in two other tables:Additional meta data on users is stored in the wp_usermeta tableData on commenters who are not logged in is stored in the wp_comments table.In this part of my series on data in WordPress, I’ll look at how WordPress stores user data and how you can access it, focusing first on the wp_users table.The wp_users TableThe wp_users table stores all of the core information about each user. It has the following fields:FieldWhat it storesNotesIDthe user IDauto-generateduser_loginusernamerequireduser_passpasswordauto-generated if not provided at signupuser_nicenamenicknameauto-generated if not entered manuallyuser_emailemail addressrequireduser_urlwebsitenot requireduser_registereddate and time the user first registeredauto-generateduser_activation_keyuser activation keyauto-generateduser_statusstatus stored as a number – this tells WordPress whether the user has confirmed registration via email, for example
↧