Last Updated: February 25, 2016
·
667
· aztecio

Change default ‘Enter Title Here’ for custom post types

Adding this to functions.php in your Wordpress theme let's you change the tired default Enter Title Here for new custom post types, to anything you wish...

function change_default_title( $title ) {
   $screen = get_current_screen();
      if  ( 'POST_TYPE' == $screen->post_type ) {
   $title = 'Enter New Field Title';
  }
   return $title;
  }
add_filter( 'enter_title_here', 'change_default_title' );

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

PHP applications still send a browser full of JavaScript. Hardening the server does not inventory the payment, analytics, and plugin scripts that run after the HTML is delivered.

Security insights from Cside