Last active
May 23, 2016 17:43
-
-
Save swest/276d861410d5783edfa02c736f2fe978 to your computer and use it in GitHub Desktop.
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 | |
// Change ‘Enter Title Here’ Text For Custom Post Type | |
// http://wp-snippets.com/change-enter-title-here-text-for-custom-post-type/ | |
function change_default_title( $title ){ | |
$screen = get_current_screen(); | |
if ( '_your_custom_post_type_' == $screen->post_type ) { | |
$title = 'The new title'; | |
} | |
return $title; | |
} | |
add_filter( 'enter_title_here', 'change_default_title' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment