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.
Usage
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... }
Changelog
Since 3.0.0 | Introduced. |
Where the hook is called
comment_form_comments_closed
wp-includes/comment-template.php 2506
do_action( 'comment_form_comments_closed' );