This action can be used to display custom HTML if the comment form is closed.
Changelog
since 7.0.0 version
Parameters
1. $post (type: WP_Post object) – the current post object
2. $currentUser (type: WP_User object) – the user object that is currently logged in
3. $commentsCount (type: int) – number of comments at the current time
Usage
add_action("wpdiscuz_comment_form_closed", function ($post, $currentUser, $commentsCount) { echo "Custom Message"; }, 10, 3);