wpDiscuz 7 API Documentation

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

wpdiscuz_captcha_field

This action can be used to display custom HTML after the reCaptcha field.

Changelog

since 7.0.0 version

Parameters

1. $args (type: array) – the arguments of the reCaptcha
2. $currentUser (type: WP_User object) – the user object that is currently logged in
3. $uniqueId (type: string) – the unique ID of the form
4. $isMainForm (type: int/string) – is the loaded comment form main or not

Usage

add_action("wpdiscuz_captcha_field", function ($args, $currentUser, $uniqueId, $isMainForm) {
    if ($isMainForm) {
        echo "Custom Message";
    }
}, 10, 4);

Was this article helpful to you? Yes No