Fires at the bottom of the comment form, inside the closing form tag.
$post_idint
comment_form is a template hook triggered at the bottom of a form rendered by comment_form() right before the closing </form>.
Functions hooked to this action receive the post ID as a parameter.
do_action( 'comment_form', $post_id );
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/comment_form