comment_closed WordPress Action Hook
The comment_closed hook is used to close comments for a post. This hook is triggered when the comment_status for a post is set to 'closed'.
do_action( 'comment_closed', int $comment_post_ID ) #
Fires when a comment is attempted on a post that has comments closed.
Parameters
- $comment_post_ID
(int)Post ID.
Source
File: wp-includes/comment.php
Changelog
Version | Description |
---|---|
1.5.0 | Introduced. |