Last active
August 29, 2015 14:15
-
-
Save samediamba/a93af8a7d00abb8cbf2d to your computer and use it in GitHub Desktop.
Change "Enter Title Here" for custom post types
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
/* | |
Add the following to the functions/functionality file | |
Courtesy: http://lizardpc.com/blog/how-to/change-enter-title-here-for-custom-post-types-wordpress-3-8/ | |
*/ | |
function title_text_input ( $title ) { | |
if ( get_post_type() == 'name_of_your_custom_post_type' ) { | |
$title = __( 'Enter your whatever text you want' ); | |
} | |
return $title; | |
} // End title_text_input() | |
add_filter( 'enter_title_here', 'title_text_input' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment