[wp-trac] [WordPress Trac] #38805: A hook is missing in class WP_List_Table

WordPress Trac noreply at wordpress.org
Tue Nov 15 22:03:18 UTC 2016


#38805: A hook is missing in class WP_List_Table
----------------------------+-----------------------------
 Reporter:  madvic          |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  4.6.1
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 If I want to add a column to a WP_List_Table, I used this hooks :
 * `manage_{$this->screen->id}_columns`
 * `manage_{$this->screen->id}_sortable_columns`
 * `manage_{$screen->id}_custom_column`

 But the last one doesn't exist in WP_List_Table, I can create a column but
 I can't insert data into.

 Here the documentation :
 https://make.wordpress.org/docs/plugin-developer-handbook/10-plugin-
 components/custom-list-table-columns/#output-table-cell-contents

 Here the source of WP_List_Table :
 https://github.com/WordPress/WordPress/blob/master/wp-admin/includes
 /class-wp-list-table.php

 Actually, I want to hook a plugin with this hook, I can't add columns.

 Thanks

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38805>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list