Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ataylorme/4100855 to your computer and use it in GitHub Desktop.
Save ataylorme/4100855 to your computer and use it in GitHub Desktop.
Change title placeholder of custom post type
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