Skip to content

Instantly share code, notes, and snippets.

@hlotvonen
Last active December 17, 2015 14:19
Show Gist options
  • Save hlotvonen/5624052 to your computer and use it in GitHub Desktop.
Save hlotvonen/5624052 to your computer and use it in GitHub Desktop.
Change title's placeholder text for custom post type "projekti"
// ****************************************************
// Change title's placeholder text for custom post type "projekti"
// ****************************************************
function change_default_title_event( $title ){
$screen = get_current_screen();
if ( 'projekti' == $screen->post_type ) {
$title = 'Projektin otsikko...';
}
return $title;
}
add_filter( 'enter_title_here', 'change_default_title_event' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment