do_action( 'comment_form', int $post_id )

Fires at the bottom of the comment form, inside the closing form tag.

Parameters

$post_id

(int) The post ID.

More Information

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.

Source

File: wp-includes/comment-template.php

View on Trac

Changelog

Version Description
1.5.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/comment_form