Home » Labs » How to change “Enter Title Here” from WordPress  

How to change “Enter Title Here” from WordPress


Filed under Labs

By default WordPress displays “Enter title here” placeholder text in the title field of a Add post page. You can change this by adding below snippet to your functions.php file on theme folder.

 
	<?php
		function change_default_title( $title ){
			 $screen = get_current_screen();
			 if  ( 'POST_TYPE' == $screen->post_type ) {
				  $title = 'Enter Custom Title';
			 }
			 return $title;
		}
		add_filter( 'enter_title_here', 'change_default_title' );	
	?>

Posts you may like: