Web Design Web Development WordPress

How to: Add new column on user listing of WordPress Dashboard

Today we shall talk about adding a new column to your WordPress’s User Listing table in the back end. WordPress by default has “Gravatar”, “username”, “Name”, “Email”, “Role” and “Posts” listed in the users table. But what if we have to add new custom column to the list? Say you run a membership website, and want to show when the account of that particular user expires. Or may be you want to show some other info about the user in the newly added column. This can be attained by using adding a “manage_users_columns” filter in your theme’s functions.php or your plugin’s file. Here is a sample code, which should be pretty self explanatory.



With this you should now have a new column added to your user’s listing table that reads “Admin Color”, with their choice of color listed below. (if you are wondering, what Admin Color is, This is Dashboard theme color; which can be changed from your User Profile.)


Need more helpful tips?