Skip to content

Instantly share code, notes, and snippets.

@infoscigeek
Created November 21, 2016 13:40
Show Gist options
  • Save infoscigeek/adb919e24971ed9a487da9790a33b18f to your computer and use it in GitHub Desktop.
Save infoscigeek/adb919e24971ed9a487da9790a33b18f to your computer and use it in GitHub Desktop.
Replacing Placeholder Text in a Custom Post Type
//edit custom field placeholder text in title box
function wpb_change_title_text( $title ){
$screen = get_current_screen();
if ( 'people' == $screen->post_type ) {
$title = 'Enter full name, first and last';
}
return $title;
}
add_filter( 'enter_title_here', 'wpb_change_title_text' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment