Skip to content

Instantly share code, notes, and snippets.

@benwo
Created January 12, 2015 00:54
Show Gist options
  • Save benwo/a9d089e9e7983e62357c to your computer and use it in GitHub Desktop.
Save benwo/a9d089e9e7983e62357c to your computer and use it in GitHub Desktop.
Wordpress: Post Type UI Title Placeholder Fix
<?php
// Fix post type placeholder title
function wpb_change_title_text( $title ){
$screen = get_current_screen();
if ( 'broker' == $screen->post_type ) {
$title = "Enter the broker's full name";
}
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