Showing number of user posts for custom post types on users.php
|Reported by:||jaredwilli||Owned by:|
|Severity:||trivial||Keywords:||custom post types|
On a site I have where anyone can join and submit as a contributor new posts to custom post types, there are hundreds of users, and hundreds of submitted posts from them, but when viewing the users.php page in the dashboard it shows them all having 0 posts since that column only displays the number of 'post' posts they have.
With the rise of custom post types, it might be worth thinking about a way to change this, so that custom post types are also displayed, showing the number of posts a user has for them, and linking that number to the custom post type post manage page like the 'post' one does now.
I can't even find a way to hook into the table that displays the user info where the posts number/link is outputted, so that I can add a filter for displaying my own custom post type columns and post counts for each person.
This may not be a core issue as it isn't possible to know what the names people will have for CPTs. I saw in template.php in the set_current_screen() function that 'post' 'page' and the actions were hardcoded. May be a plugins job for this idk. Sorry if this ticket exists already too.