Created
October 9, 2013 18:36
-
-
Save intelliweb/6905961 to your computer and use it in GitHub Desktop.
WP: Filter 'Enter title here' text in title field of edit post admin screen to show something different
This file contains hidden or 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 | |
// New 'Enter title here' text for custom post type | |
add_filter('enter_title_here', 'intw_filter_enter_title_here'); | |
function intw_filter_enter_title_here( $message ) { | |
global $post; | |
if ('POSTTYPE' == $post->post_type) { | |
$message = 'NEW MESSAGE'; | |
} | |
return $message; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment