enter_title_here
Filter HookDescription
Displays the Quick Draft widget.Hook Information
File Location |
wp-admin/includes/dashboard.php
View on GitHub
|
Hook Type | Filter |
Line Number | 591 |
Hook Parameters
Type | Name | Description |
---|---|---|
string|false
|
$error_msg
|
Optional. Error message. Default false. |
Usage Examples
Basic Usage
<?php
// Hook into enter_title_here
add_filter('enter_title_here', 'my_custom_filter', 10, 1);
function my_custom_filter($error_msg) {
// Your custom filtering logic here
return $error_msg;
}
Source Code Context
wp-admin/includes/dashboard.php:591
- How this hook is used in WordPress core
<?php
586
587 <div class="input-text-wrap" id="title-wrap">
588 <label for="title">
589 <?php
590 /** This filter is documented in wp-admin/edit-form-advanced.php */
591 echo apply_filters( 'enter_title_here', __( 'Title' ), $post );
592 ?>
593 </label>
594 <input type="text" name="post_title" id="title" autocomplete="off" />
595 </div>
596
PHP Documentation
<?php
/**
* Displays the Quick Draft widget.
*
* @since 3.8.0
*
* @global int $post_ID
*
* @param string|false $error_msg Optional. Error message. Default false.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-admin/includes/dashboard.php
Related Hooks
Related hooks will be displayed here in future updates.