[wp-trac] [WordPress Trac] #21222: Unable to add columns to the Terms List table

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 13 17:53:11 UTC 2012


#21222: Unable to add columns to the Terms List table
--------------------------+-----------------------
 Reporter:  dglingren     |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:
Component:  Taxonomy      |     Version:  3.4.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+-----------------------

Comment (by nacin):

 Works fine for me:
 {{{
 add_filter( 'manage_edit-post_tag_columns', function( $cols ) {
         $cols['col1'] = 'Column 1';
         $cols['col2'] = 'Column 2';
         return $cols;
 } );

 add_filter( 'manage_post_tag_custom_column', function( $content, $column,
 $term_id ) {
         return "We are in $column for $term_id";
 }, 10, 3 );
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21222#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list