edit_form_after_title
Fires after the post title input field and its permalink, allowing the displayed content to be controlled. Outputs nothing by default.
When adding a new post, there may be a visually large gap between its title and the content output on this hook. This space is reserved for the post permalink, which will be generated later.

Usage
add_action( 'edit_form_after_title', 'wp_kama_edit_form_after_title_action' );
/**
* Function for `edit_form_after_title` action-hook.
*
* @param WP_Post $post Post object.
*
* @return void
*/
function wp_kama_edit_form_after_title_action( $post ){
// action...
}
- $post(WP_Post)
- The post object. See get_post() for the object structure.
Examples
#1 Add reference information to help authors work with posts
<?php
add_action( 'edit_form_after_title', 'post_edit_form_after_title' );
function post_edit_form_after_title( $post ) {
if ( $post->post_type === 'post' ) {
?>
<div style="margin-top: 10px;padding: 15px;background: #f4ecd5;border: 1px solid #0085ba;">
Please format articles according to the <a href="/rules/">rules</a>.
</div>
<?php
}
}
The result:
Changelog
| Since 3.5.0 | Introduced. |
Where the hook is called
In file: /wp-admin/edit-form-advanced.php
edit_form_after_title
wp-admin/edit-form-advanced.php 607
do_action( 'edit_form_after_title', $post );
wp-admin/includes/post.php 2557
do_action( 'edit_form_after_title', $post );
Where the hook is used in WordPress
wp-admin/edit-form-advanced.php 75
add_action( 'edit_form_after_title', '_wp_posts_page_notice' );
wp-admin/includes/admin-filters.php 89
add_action( 'edit_form_after_title', '_disable_content_editor_for_navigation_post_type' );
wp-admin/includes/meta-boxes.php 1565
add_action( 'edit_form_after_title', 'edit_form_image_editor' );

