Make WordPress Core

Opened 13 years ago

Closed 9 years ago

#16987 closed enhancement (duplicate)

Allow registering a WP_List_Table class when registering post types

Reported by: sanchothefat's profile sanchothefat Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords: dev-feedback needs-patch
Focuses: Cc:

Description

This would go a long way towards making the post types feature more complete. I discovered while converting Links from the native format into a post type that the admin lists are still very clunky to work with, especially with quick edit obliterating non-underscored post meta and the quick edit form not being configurable enough on the server-side to make it useful for more unusual post type requirements.

Code-wise it would be good to work with it in a similar way to the Walker_Nav_Menu class eg. so I could extend the WP_Posts_List class to overwrite certain elements for my post type.

Change History (8)

#1 @scribu
13 years ago

  • Keywords 2nd-opinion added
  • Milestone changed from Awaiting Review to Future Release

The list table API will be made public (and therefore extensible) for WP 3.2.

Not sure about the parameter for register_post_type() though.

Punting to future for now.

#2 @cogmios
13 years ago

  • Cc deleau@… added

#3 @sillybean
11 years ago

  • Keywords close added

The list class table is more extensible now, and it's much easier to change the default columns. Close?

#4 follow-up: @sanchothefat
11 years ago

Can you filter which class is used now? Overloading the class by extending it would be handy still.

The main problem for me was quick edit. If the issues there are solved with post meta then by all means close the ticket.

#6 in reply to: ↑ 4 @MZAWeb
11 years ago

Replying to sanchothefat:

Can you filter which class is used now? Overloading the class by extending it would be handy still.

No, you can't choose a custom class. See #18449

#7 @chriscct7
9 years ago

  • Keywords needs-patch added; 2nd-opinion close removed
  • Severity changed from minor to normal

#8 @wonderboymusic
9 years ago

  • Milestone Future Release deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Closing this in favor of #18449, which I have marked for 4.4

Note: See TracTickets for help on using tickets.