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

Code Snippet:

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

Comments  Leave a Reply

  1. This doesnt seem to work (WP 3.8)

  2. hello
    how can i set one title for each post type i have? tx a lot!

  3. Interview with Dave Clements from DoitWithWP June 4, 2012 at 8:45 am

    […] man in that camp is Kevin Chard from WPSnipp; he’s just doing it to help people out. For developers, you obviously can’t miss the […]

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!