enter_title_here

enter_title_here

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.8.2

apply_filters('enter_title_here') is found 3 times:

  • /wp-admin/edit-form-advanced.php line 538
    	 *
    	 * @param string  $text Placeholder text. Default 'Add title'.
    	 * @param WP_Post $post Post object.
    	 */
    	$title_placeholder = apply_filters( 'enter_title_here', __( 'Add title' ), $post );
    	?>
    	<label class="screen-reader-text" id="title-prompt-text" for="title"><?php echo $title_placeholder; ?></label>
    	<input type="text" name="post_title" size="30" value="<?php echo esc_attr( $post->post_title ); ?>" id="title" spellcheck="true" autocomplete="off" />
    	<?php
    	if ( post_type_supports( $post_type, 'editor' ) ) {
    		?>
    
  • /wp-admin/edit-form-blocks.php line 263
    $editor_settings = array(
    	'availableTemplates'   => $available_templates,
    	'disablePostFormats'   => ! current_theme_supports( 'post-formats' ),
    	/** This filter is documented in wp-admin/edit-form-advanced.php */
    	'titlePlaceholder'     => apply_filters( 'enter_title_here', __( 'Add title' ), $post ),
    	'bodyPlaceholder'      => $body_placeholder,
    	'autosaveInterval'     => AUTOSAVE_INTERVAL,
    	'richEditingEnabled'   => user_can_richedit(),
    	'postLock'             => $lock_details,
    	'postLockUtils'        => array(
    		'nonce'       => wp_create_nonce( 'lock-post_' . $post->ID ),
    
  • /wp-admin/includes/dashboard.php line 591
    		<div class="input-text-wrap" id="title-wrap">
    			<label for="title">
    				<?php
    				/** This filter is documented in wp-admin/edit-form-advanced.php */
    				echo apply_filters( 'enter_title_here', __( 'Title' ), $post );
    				?>
    			</label>
    			<input type="text" name="post_title" id="title" autocomplete="off" />
    		</div>
    
    		<div class="textarea-wrap" id="description-wrap">
    

See this hook used in plugins: