[wp-trac] [WordPress Trac] #21240: Ability to "Turn On" Native custom columns for registered custom taxonomies

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 27 14:31:26 UTC 2012


#21240: Ability to "Turn On" Native custom columns for registered custom taxonomies
-----------------------------+------------------------------
 Reporter:  jtsternberg      |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Taxonomy         |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  2nd-opinion      |
-----------------------------+------------------------------

Comment (by jtsternberg):

 Replying to [comment:9 scribu]:
 > [attachment:21240.diff] looks like a step in the right direction.
 >
 > 1. Any particular reason for making get_taxonomy_column_headers() a
 stand-alone function?
 > 2. What is the purpose of the 'taxonomy_column_header' filter?

 1. vs rolling it into the get_column_headers() function? No particular
 reason, just thought it might be cleaner.
 2. The filter will allow you to rename the taxonomy column headers if you
 want. As is, the Taxonomy column headers will be the
 $taxonomy_object->label, but with this filter could be changed to anything
 you wanted. Maybe the the $taxonomy_object->label in
 {{{
 $empty = !empty( $empty ) ? $empty : __( 'No '. $taxonomy_object->label );
 }}}
 should have that same filter applied.

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


More information about the wp-trac mailing list