wpDiscuz 7 API Documentation

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

wpdiscuz_button

This action can be used to display custom HTML under the comment form. The HTML will be added in the div with the .wpdiscuz-textarea-foot class.

Changelog

since 7.0.0 version

Parameters

1. $uniqueId (type: string) – the unique ID of the form
2. $currentUser (type: WP_User object) -the user object that is currently logged in
3. $form (type: Form object) – the object of the form

Usage

add_action("wpdiscuz_button", function ($uniqueId, $currentUser, $form) {
    echo "Custom Message";
}, 10, 3);

Was this article helpful to you? Yes No