WordPress displays “Enter title here” placeholder text in the title field on the post screen where you create new posts. When we create custom post types, there is no default parameter to change this text. BUT… (I love the fact that there’s always a but, ahhhha!!) here’s a simple snippet which allows you to change “Enter title here” text in WordPress posts screen and custom post types’ screen.
Just drop the following snippet to your current theme’s functions.php file:
function change_title_text( $title ){ $screen = get_current_screen(); if ( 'movie' == $screen->post_type ) { $title = 'Enter movie name with release year'; } return $title; } add_filter( 'enter_title_here', 'change_title_text' );
That’s all!