comment_form
Fires at the bottom of the comment form, inside the closing form tag.
Использование
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.
Список изменений
С версии 1.5.0 | Введена. |
Где вызывается хук
comment_form
wp-includes/comment-template.php 2868
do_action( 'comment_form', $post_id );
Где используется хук в WordPress
wp-includes/default-filters.php 419
add_action( 'comment_form', 'wp_comment_form_unfiltered_html_nonce' );