[wp-trac] [WordPress Trac] #18996: $term_id parameter not passed on "manage_{my_taxonomy}_custom_column"

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 19 01:25:43 UTC 2011


#18996: $term_id parameter not passed on "manage_{my_taxonomy}_custom_column"
--------------------------+-----------------------------
 Reporter:  magicfrog     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Taxonomy      |    Version:
 Severity:  normal        |   Keywords:  needs-patch
--------------------------+-----------------------------
 To add an extra column in my custom taxonomy listing, seems i'm supposed
 to do this :

 {{{
 add_action('manage_mytaxonomy_custom_column', 'manage_mytaxonomy_columns',
 10, 2);
 function manage_mytaxonomy_columns($empty='', $column_name, $term_id){
     switch ($column_name){
         case 'logo':
             $terms = get_the_terms($term_id, 'mytaxonomy');
 ...
 }}}

 But with this i get :
 Warning: Missing argument 3 for manage_mytaxonomy_columns()

 As info, the column  is visible, its title too. The problem only concerns
 the value renderer.
 (I've also added custom columns on a  custom post type grid andit works
 perfectly there)

 My purpose is to display a custom logo associated with each record, but to
 do so, i need to get the id of each record... i might be wrong , thanx to
 let me know  if i'm supposed to do  that another way.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18996>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list