Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save timothyjensen/f3830cbd997acd11722d29eaa8c93171 to your computer and use it in GitHub Desktop.
Save timothyjensen/f3830cbd997acd11722d29eaa8c93171 to your computer and use it in GitHub Desktop.
<?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