Change the “Enter Title Here” for Custom Post Types

Custom post types in WordPress are a powerful feature. If you are creating one chances are you want to customise every aspect of the CPT’s look in the WordPress admin area from labels to messages.

If you ever need to change the “Enter Title Here” for Custom Post Types this little filter snippet allows just that when a user is adding a new post.

function cpt_enter_title_here( $title ){
    $screen = get_current_screen();
    if ( 'custom_post_type' == $screen->post_type ) {
        $title = 'Custom Post Type Title Text';
    }
    return $title;
}

add_filter( 'enter_title_here', 'cpt_enter_title_here' );

Source – http://flashingcursor.com/wordpress/change-the-enter-title-here-text-in-wordpress-963

About

London based web developer. Creator of Instagrate Pro. Loves WordPress and ribs.

Leave a Reply

Your email address will not be published. Required fields are marked *