wordpress snippets last updated   : July 14, 2014
we now have 634 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 →
jqsnipp.com | we just launched jquery snippets website