This action can be used to display custom HTML under the comment form.
Changelog
since 7.0.0 version
Parameters
1. $isMainForm (type: int/string) - is the loaded comment form main or not
2. $form (type: Form object) - the object of the form
3. $currentUser (type: WP_User object) - the user object that is currently logged in
4. $commentsCount (type: int) - the number of comments at the current time
5. $uniqueId (type: string) - the unique ID of the form
2. $form (type: Form object) - the object of the form
3. $currentUser (type: WP_User object) - the user object that is currently logged in
4. $commentsCount (type: int) - the number of comments at the current time
5. $uniqueId (type: string) - the unique ID of the form
Usage
add_action("wpdiscuz_form_bottom", function ($isMain, $form, $currentUser, $commentsCount, $uniqueId) {
if ($isMain) {
echo "Custom Message Form Main Form";
} else {
echo "Custom Message Form Secondary Form";
}
}, 10, 5);