comment_form_comments_closed
Fires after the comment form if comments are closed.
For backward compatibility, this action also fires if comment_form() is called with an invalid post object or ID.
Использование
add_action( 'comment_form_comments_closed', 'wp_kama_comment_form_comments_closed_action' ); /** * Function for `comment_form_comments_closed` action-hook. * * @return void */ function wp_kama_comment_form_comments_closed_action(){ // action... }
Список изменений
С версии 3.0.0 | Введена. |
Где вызывается хук
comment_form_comments_closed
wp-includes/comment-template.php 2481
do_action( 'comment_form_comments_closed' );