Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
add_filter( 'enter_title_here', function( $title ) {
$screen = get_current_screen();
if ( 'your_custom_post_type' == $screen->post_type ){
$title = 'Your custom placeholder text';
}
return $title;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment