Skip to content

Instantly share code, notes, and snippets.

@hlotvonen
Last active Dec 17, 2015
Embed
What would you like to do?
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