CCDzine
3/30/2015 - 9:41 AM

Replace title placeholder in custom post type

Replace title placeholder in custom post type

<?php

function ccd_change_cpt_title( $title ) {
  
  $screen = get_current_screen();
  
  if ( 'custom_post_type' == $screen->post_type ) {
    $title = 'Placeholder Text';
  }
  
  return $title;
}
add_filter( 'enter_title_here', 'ccd_change_cpt_title' );

?>

Replace Title Placeholder in Custom Post Types

WordPress Snippet