WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 3 years ago

Last modified 3 years ago

#17615 closed defect (bug) (invalid)

WP_List_Table::get_columns does not work for plugins

Reported by: cyplo Owned by: westi
Milestone: Priority: normal
Severity: normal Version: 3.1.3
Component: Plugins Keywords:
Focuses: Cc:

Description

see Ticket #15386 - the ticket is closed, however I have the very same problem with 3.1.3 version and the solution example provided do not work for me.

Wordpress claims that there is no function as get_list_table , I have changed it to _get_list_table, after that change it does launch but returns a null object.

Change History (5)

#1 @cyplo
7 years ago

  • Cc cyplo@… added

#2 @westi
7 years ago

  • Milestone changed from Awaiting Review to Future Release
  • Owner set to westi
  • Status changed from new to assigned

We do not support custom list table classes at the moment which is why there are no hooks for this.

When we have a stable api for them they will be supported - this was meant to happen in 3.2 but it missed the release unfortunately.

#3 @cogmios
7 years ago

  • Cc deleau@… added

#4 @chriscct7
3 years ago

  • Resolution set to invalid
  • Status changed from assigned to closed

_ prefixed functions are private to the class. If you need a copy of the list table, the best current way of doing this is grabbing a copy of that list table file, moving it to your plugin then renaming it for now. Since the lack of a return on a private function is expected, closing as invalid.

#5 @DrewAPicture
3 years ago

  • Milestone Future Release deleted
Note: See TracTickets for help on using tickets.