The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
[Solved] Custom callback after adding a comment
✦ Summarize Topic
✦
✦
✦
AI is analyzing the discussion...
How-to and Troubleshooting
Topic starter
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
Jun 23, 2021 8:14 pm
(@curiousjake)
New Member
Joined: 5 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!
Support
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
Jun 25, 2021 12:36 pm
(@asti)
Illustrious Member
Joined: 8 years ago
Please rewrite your custom code with the following function:
wpdiscuzAjaxObj.myCallback = function () {
}
(@curiousjake)
Joined: 5 years ago
New Member
Posts: 2
Jun 25, 2021 1:05 pm
Translate
▼
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
Show original
Translating...
@asti Perfect, this has fixed the problem. Thanks!