Created
January 12, 2015 00:54
-
-
Save benwo/a9d089e9e7983e62357c to your computer and use it in GitHub Desktop.
Wordpress: Post Type UI Title Placeholder Fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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