wpDiscuz 7 API Documentation

  1. Home
  2. Docs
  3. wpDiscuz 7 API Documentation
  4. Actions
  5. wpdiscuz_form_bottom
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

wpdiscuz_form_bottom

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

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);

Was this article helpful to you? Yes No