Blog

Posted in Images, WordPress Theme Development

Change custom post type title placeholder 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' );
Advertisements