[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 18:10:27 UTC 2012


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

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 OK, you are right - the mistake came from first param 'empty' kept as a
 dummy var and not the content ... I change my way to manage content like
 here:


 {{{
 function co_manage_tax_column ( $content, $name, $id ) {
         if( $name != 'linked-post' )
                         return $content;
         global $taxonomy ;
         $term = get_term((int)$id , $taxonomy ) ;
         $a = $term->slug;

         //echo '<div>*'. $a .'</div>';
         return $a;
 }
 add_filter( 'manage_category_custom_column', 'co_manage_tax_column', 12,
 3);
 }}}

 and now, no interferences between the 2 filters for the two added columns.

 Many thanks for your help to go deeper

 M.

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


More information about the wp-trac mailing list