wpDiscuz 7 API Documentation

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

wpdiscuz_custom_field_checkbox

This filter can be used for changing the value of the checkbox field printed under the comment.

Changelog

Since 7.0.0 version

Parameters

1. $value (type: string) – the value of the field
2. $args (type: array) – the arguments filled as the values of a fields

Usage

add_filter("wpdiscuz_custom_field_checkbox", function ($value, $args) {
    $value .= ", Custom Text";
    return $value;
}, 10, 2);

Was this article helpful to you? Yes No