This filter can be used for changing the response array that should be returned to the JS after the following cases:
1. when the comment is called by the ID
2. when the Load More function is working,
3. when you click on the sorting buttons
4. when you click on the show replies button, etc.
Changelog
Since 7.0.0 version
Parameters
$response (type: array) – the response array that should be returned to the JS
Usage
add_filter("wpdiscuz_ajax_callbacks", function ($response) { $response["callbackFunctions"][] = "myCustomCallback"; return $response; });