do_action( ‘comment_closed’, int $comment_post_id )

In this article

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

Parameters

$comment_post_idint
Post ID.

Source

do_action( 'comment_closed', $comment_post_id );

Changelog

VersionDescription
1.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.