Created
November 17, 2012 22:36
-
-
Save ataylorme/4100855 to your computer and use it in GitHub Desktop.
Change title placeholder of 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
function CUSTOMPOSTTYPE_change_default_title( $title ){ | |
$screen = get_current_screen(); | |
//only update the title if on CUSTOMPOSTTYPE | |
if ( 'CUSTOMPOSTTYPE' == $screen->post_type ) | |
$title = 'NEW PLACEHOLDER HERE'; | |
return $title; | |
} | |
add_filter( 'enter_title_here', 'CUSTOMPOSTTYPE_change_default_title' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment