On this page
do_action( 'comment_form', int $post_id )
Fires at the bottom of the comment form, inside the closing form tag.
Parameters
$post_idint-
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 all references
do_action( 'comment_form', $post_id );
Related
Used By
| Used By | Description |
|---|---|
| comment_form() wp-includes/comment-template.php | Outputs a complete commenting form for use within a template. |
Changelog
| Version | Description |
|---|---|
| 1.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/comment_form