comment_form WordPress Action Hook
The comment_form hook is used to display the comment form on a post or page. This hook is typically used by plugins to add custom fields to the comment form.
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
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |