wordpress snippets last updated   : October 6, 2014
we now have 641 snippets

Change default ‘Enter Title Here’ for custom post types

wordpress snippet

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

snippet :  PHPcopy
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' );
source →

Did you like this post? If so please share it with your friends. Thanks!