A good[ish] website

Web development blog, loads of UI and JavaScript topics

Change the WordPress title field placeholder text

Filed under: WordPress— Tagged with: functions.php, snippets, title

Really handy snippet to change the "Enter title here" text to suit your post type better.

Just paste this to your functions.php, change the POST_TYPE and the default text.

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 would go here, but the commenting system isn’t ready yet, sorry. Tweet me @hiljaa if you want to make a correction etc.

  • © 2021 Antti Hiljá
  • About
  • Follow me in Twatter → @hiljaa
  • All rights reserved yadda yadda.
  • I can put just about anything here, no one reads the footer anyways.
  • I love u!