Action hook 'comment_closed'

in WP Core File wp-includes/comment.php at line 3545

Description

Fires when a comment is attempted on a post that has comments closed.

Occurrences

Filename Line Number
wp-includes/comment.php 3545

Parameters

Type Name Description
int $comment_post_id Post ID.

PHP Doc

/**
		 * Fires when a comment is attempted on a post that has comments closed.
		 *
		 * @since 1.5.0
		 *
		 * @param int $comment_post_id Post ID.
		 */