The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
[Solved] Custom callback after adding a comment
How-to and Troubleshooting
(@curiousjake)
New Member
Joined: 4 years ago
Hi,
I'm trying to use the 'wpdiscuz_comment_post' filter to register a custom callback after a comment is posted, but I'm getting an error saying 'myCallback is not a function'. Digging into the source code, it seems like the runCallbacks function actually looks for the callback in the wpdiscuzAjaxObj array.
Any ideas how I can register a callback in JS that can be run after a comment is posted?
Thanks in advance!
(@asti)
Illustrious Member
Joined: 8 years ago
Please rewrite your custom code with the following function:
wpdiscuzAjaxObj.myCallback = function () {
}
(@curiousjake)
Joined: 4 years ago
New Member
Posts: 2
Jun 25, 2021 9:05 am
@asti Perfect, this has fixed the problem. Thanks!