wpDiscuz 7 API Documentation

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

wpdiscuz_after_feedback_form_fields

This hook can be used for adding extra fields/HTML in the Inline Feedback Form. This hook is being dispatched once for each post, and if you want to add different fields for each Inline Feedback Form you should use CSS or JS codes as well.

Changelog

Added in version 7.0.8

Parameters

1. $html (type: string) – the HTML that will be added at the end of the feedback form
2. $postId (type: int) – the post ID where the form is being used

Usage

add_filter("wpdiscuz_after_feedback_form_fields", function ($html, $postId) {
    return $html . "Custom Text";
}, 10, 2);

Was this article helpful to you? Yes No