[wp-trac] [WordPress Trac] #19257: Allow post types to override the phrase "Featured image"

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 16 07:04:35 UTC 2011


#19257: Allow post types to override the phrase "Featured image"
-------------------------+------------------------------
 Reporter:  johnbillion  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Post Types   |     Version:  3.3
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------------------
Changes (by DrewAPicture):

 * cc: xoodrew@… (added)


Comment:

 Replying to [comment:2 johnbillion]:
 > A custom post type would set its own labels for featured images like so:
 >
 > {{{
 > register_post_type( 'company', array(
 >       'labels' => array(
 >               'featured_image' => 'Company Logo',
 >               'set_featured_image' => 'Set company logo',
 >               'remove_featured_image' => 'Remove company logo',
 >               'use_featured_image' => 'Use as company logo'
 >       )
 > ) );
 > }}}

 +1 for this. This would be very helpful for many of my projects.

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


More information about the wp-trac mailing list