wpDiscuz 7 API Documentation

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

wpdiscuz_comment_vote

This filter can be used for changing the response array that should be returned to the JS after the comment voting.

Changelog

since 7.0.0 version

Parameters

$response (type: array) – the response array that should be returned to the JS

Usage

add_filter("wpdiscuz_comment_vote", function ($response) {
    $response["callbackFunctions"][] = "myCustomCallback";
    return $response;
});

Was this article helpful to you? Yes No