post_edit_form_tag WordPress Action Hook
The post_edit_form_tag hook is triggered right before the closing tag on the post editing screen. It can be used to add extra fields to the form or to modify the existing fields.
do_action( 'post_edit_form_tag', WP_Post $post ) #
Fires inside the post editor form tag.
Parameters
- $post
(WP_Post)Post object.
More Information
Applies to the tag for the default post edit page (which is used for pages and custom post types). It is at the end of the form start tag and before the closing bracket.
<form name="post" action="post.php" method="post" id="post"<?php do_action('post_edit_form_tag'); ?>>
Source
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |