How to add an extra column in user listing page in WordPress Admin Panel

Some times you need to alter user listing page, just to hide or show some columns. If you want to hide some columns like Email/Role/Posts, then you can simply use screen options.

Screenshot from 2017-09-10 12:02:21

But if you want to show any additional user wise information in this page, then it becomes a challenge.

You can achieve this by using some lines of code.

For example I want to show user wise number of comments in this page.

First of all add a column and name it’s header

 

Screenshot from 2017-09-10 11:44:42

Now we need to show row wise data for this column.

 

 

Screenshot from 2017-09-10 11:52:19

Leave a Reply