comment_form
Fires at the bottom of the comment form, inside the closing form tag.
Usage
add_action( 'comment_form', 'wp_kama_comment_form_action' );
/**
* Function for `comment_form` action-hook.
*
* @param int $post_id The post ID.
*
* @return void
*/
function wp_kama_comment_form_action( $post_id ){
// action...
}
- $post_id(int)
- The post ID.
Changelog
| Since 1.5.0 | Introduced. |
Where the hook is called
comment_form
wp-includes/comment-template.php 2898
do_action( 'comment_form', $post_id );
Where the hook is used in WordPress
wp-includes/default-filters.php 439
add_action( 'comment_form', 'wp_comment_form_unfiltered_html_nonce' );