[wp-trac] [WordPress Trac] #36425: Register post type name of "title"

WordPress Trac noreply at wordpress.org
Wed Apr 6 09:24:40 UTC 2016


#36425: Register post type name of "title"
-------------------------------+---------------------------------
 Reporter:  Compute            |       Owner:
     Type:  feature request    |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:  4.4.2
 Severity:  normal             |  Resolution:
 Keywords:                     |     Focuses:  ui, administration
-------------------------------+---------------------------------

Comment (by andg):

 It's not a bad idea, actually, but nothing you can't do already using the
 `enter_title_here` filter. For example:


 {{{
 add_filter( 'enter_title_here', function( $title, $post ) {
         if ( $post->post_type === 'your-post-type' ) {
                 $title = __( 'Enter Company Name' );
         }

         return $title;
 }, 10, 2 );
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36425#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list