Make WordPress Core

Opened 13 years ago

Closed 7 months ago

#14154 closed enhancement (wontfix)

Filters hook on the custom post type edit page

Reported by: firebird75's profile firebird75 Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: Posts, Post Types Keywords: close
Focuses: administration Cc:

Description

It would be great to have some filters added on the custom post type edit page to be able to modify the queries associated to the following filters :

  • post count (mine, all, draft, published, trashed, etc...)
  • categories
  • dates

Basically, the issue right now is that if you modify the list of posts displayed to a user with the posts_where filter on the custom post type edit page, the post count, categories and dates filters won't be accurate anymore because there is no possibility to filter them as for the post list (or at least, I haven't found these).

Thanks!

Change History (8)

#1 @scribu
13 years ago

  • Priority changed from normal to low

#2 @kevinB
13 years ago

  • Cc kevinB added

#3 @nacin
13 years ago

  • Milestone changed from Awaiting Review to Future Release

#4 @scribu
12 years ago

As a workaround, you could hook into views_edit-{$post_type} and change the numbers from there.

#5 @chriscct7
9 years ago

  • Focuses administration added
  • Keywords needs-patch added

#6 @chriscct7
8 years ago

  • Priority changed from low to normal

#7 @Howdy_McGee
3 years ago

  • Keywords close added; needs-patch removed

You can already override the views count using the views_{$this->screen->id} filter hook added in 3.5.

#8 @hellofromTonya
7 months ago

  • Resolution set to wontfix
  • Status changed from new to closed

Closing this ticket. Why?

  • Marked for close 3 years ago.
  • Activity prior to that was 12 years ago.
  • Much has changes since 12 years ago.
  • There are ways to access the counts as noted in the ticket.

If however, the request is still valid for today's Core code, then please reopen and provide sample code and explanation to help contributors further assess.

Note: See TracTickets for help on using tickets.