title

Change default ‘Enter Title Here’ for custom post types

 

Change default ‘Enter Title Here’ for custom post types

10 Mai 2013, Posted by antoine in

Adding this snippet to the functions.php of your wordpress theme will let you change default ‘Enter Title Here’ for custom post types. You will need to update the POST_TYPE name and default text.

function change_default_title( $title ){
     $screen = get_current_screen();
     if  ( 'POST_TYPE' == $screen->post_type ) {
          $title = 'Enter Invoice Title';
     }
     return $title;
}
add_filter( 'enter_title_here', 'change_default_title' );