azad_rpi

custom_placeholder_title_custom_post

Apr 30th, 2014
469
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1. function change_default_title( $title ){
  2.      $screen = get_current_screen();
  3.  
  4.      if  ( 'your_custom_post_name' == $screen->post_type ) {
  5.           $title = 'Enter client name here';
  6.      }
  7.  
  8.      return $title;
  9. }
  10.  
  11. add_filter( 'enter_title_here', 'change_default_title' );
Advertisement
Add Comment
Please, Sign In to add comment