The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Custom Code Hook - comment_post
✦ 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...
Sep 24, 2020 7:22 pm
(@soft-designs)
Active Member
Joined: 6 years ago
Hi - We purchased several of your AddOns - Great Vendor, Great Products.
Now we need to add a custom "hook" when a comment is submitted to the database. Normally this should work with no problem, but for some reason our hook below is not firing.
Our hook code is very simple:
--
add_action( 'comment_post', 'comment_post_verify_avatar', 10, 2 );
--
Is there any reason why this standard WP Code Hook would not work with wpDiscuz?
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...
Sep 25, 2020 11:55 am
(@asti)
Illustrious Member
Joined: 8 years ago
Hi @soft-designs,
You can use the wpdiscuz_after_comment_post hook, however the comment_post WordPress hook also should work fine.