Skip to content

Instantly share code, notes, and snippets.

@flashingcursor
Created August 4, 2012 19:55
Show Gist options
  • Save flashingcursor/3259590 to your computer and use it in GitHub Desktop.
Save flashingcursor/3259590 to your computer and use it in GitHub Desktop.
Change "Enter Title Here" text in WordPress Custom Post Types
<?php
add_filter( 'enter_title_here', 'hwp_enter_title_here' );
function hwp_enter_title_here( $title ){
$screen = get_current_screen();
if ( 'custom_post_type' == $screen->post_type ) {
$title = 'Custom Post Type Title Text';
}
return $title;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment