[wp-trac] [WordPress Trac] #18449: List Table Factory Needs to be Pluggable

WordPress Trac noreply at wordpress.org
Sat Feb 28 03:21:00 UTC 2015


#18449: List Table Factory Needs to be Pluggable
----------------------------+-----------------------------
 Reporter:  miqrogroove     |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Future Release
Component:  Administration  |     Version:  3.1
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+-----------------------------
Changes (by Faison):

 * keywords:   => has-patch


Comment:

 I recently ran into a situation where I needed to make some extensive
 customizations to the `WP_Media_List_Table` class and the filters it
 provided was not enough. So I'm hoping I can bring life back to this
 ticket with a patch that would help us all out.

 It adds the filter `'pre_get_list_table'` to `_get_list_table()`. It
 allows a developer to check what class was requested, and return an object
 of a different class if needed.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/18449#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list