I have a custom post status and the issue I have is that the filter option for it that automatically appears above the post listings on the edit.php page of the WP admin shows a total count of all the posts with this status. I want it to show a count that is specific to the user in question.
So for example
All (1) | Published (0) | Draft (0) | Pending (0) | | Trash (0) | Awaiting (8)
That figure of 8 for awaiting is all the posts in the system with the status, yet the user I'm logged in at, if they had no posts set to that status I would want that to appear with zero or to not be visible at all (the default functionality in WP I believe).
I can't see if this is functionality supported by WP but I assume there must be a way as the other totals listed in the filter links ARE user specific.
This is all setup via the simple register_post_status function....
function awaiting_custom_post_status(){
register_post_status( 'awaiting', array(
'label' => _x( 'Changes Awaiting Approval', 'apartments' ),
'public' => true,
'exclude_from_search' => false,
'show_in_admin_all_list' => true,
'show_in_admin_status_list' => true,
'label_count' => _n_noop( 'Changes Awaiting Approval <span class="count">(%s)</span>', 'Changes Awaiting Approval <span class="count">(%s)</span>' ),
) );
}
add_action( 'init', 'awaiting_custom_post_status' );
Anyone got any ideas how to modify this count value to be user specific such as the other values are?