Home / admin / Change default ‘Enter Title Here’ for custom post types
  • How to Change default ‘Enter Title Here’ for custom post types

    change-default-enter-title-here-for-custom-post-types

    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

    wordpress snippet : PHP

    <>
    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' );
    

    ( WordPress codex functions, hooks, in this snippet. )

    default_title, add_filter,