Created
October 31, 2014 04:38
-
-
Save dipakcg/852c25ab3d50af8f1e39 to your computer and use it in GitHub Desktop.
WordPress - Replace ‘Enter Title Here’ Text
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
/* | |
Replace ‘Enter Title Here’ Text in WordPress ( http://i.imgur.com/ZAzGY6g.png ) | |
Add the following code in theme's functions.php file. | |
Read more at : http://gajjar.me/1q6ADaI | |
*/ | |
function wpb_change_title_text( $title ){ | |
$screen = get_current_screen(); | |
if ( 'movie' == $screen->post_type ) { | |
$title = 'Enter movie name with release year'; | |
} | |
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