August 21, 2016
0
Change “Enter Title Here” placeholder text on a custom post type
Yes!
Now you can change your WordPress default title placeholder text by using this code.
add_filter( 'enter_title_here', 'unique_function_name' );
function unique_function_name( $title ){
$screen = get_current_screen();
if ( 'POSTTYPEHERE' == $screen->post_type ){
$title = 'Your custom title here';
}
return $title;
}
You must need to replace POSTTYPEHRE with your post type name.
