Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save petenelson/5502745 to your computer and use it in GitHub Desktop.
Save petenelson/5502745 to your computer and use it in GitHub Desktop.
WordPress - Change custom post type "Enter Title Here" placeholder
// via http://www.paulund.co.uk/change-the-enter-title-text-for-custom-post-types
// just saving it here for later reference
function change_default_title( $title ){
$screen = get_current_screen();
if ( $screen->post_type == 'product' ) {
return 'Enter New Product Here';
}
}
add_filter( 'enter_title_here', 'change_default_title' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment