Change ‘Enter Title Here’ Text For Custom Post Type

With a little bit of magic, we can get our own text there. Previously this required using javascript to change this text, but 3.1 creates a new ‘enter_title_here’ filter that gives us better control.

Code Snippet:


function change_default_title( $title ){
     $screen = get_current_screen();
     if  ( '_your_custom_post_type_' == $screen->post_type ) {
          $title = 'The new title';
     return $title;
add_filter( 'enter_title_here', 'change_default_title' );

Posted in Admin area