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' );Written by ToktoK/iO
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Php
Authors
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
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#