Created
November 21, 2016 13:40
-
-
Save infoscigeek/adb919e24971ed9a487da9790a33b18f to your computer and use it in GitHub Desktop.
Replacing Placeholder Text in a Custom Post Type
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
//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