I am developing MyCRED hooks for DWQA to add the reputation feature to this plugin. I have fully coded the logic, however, I cannot find the right function in DWQA to hook to. I tried hooking to “dwqa-action-vote” first, but that seemed to be just a wrapper for “dwqa_vote_question” and “dwqa_vote_answer”. After looking through the files, I was not able to find those two functions. I know my code is working, as I have successfully hooked to the “vote_best_answer” functions. Any help or code would be appreciated. Thanks.
As you can try in dw-question-answer/inc/actions-vote.php. We can use these action here
do_action( 'dwqa_vote_question', $question_id, $point );
do_action( 'dwqa_vote_answer', $answer_id, $point );
Hope this help.
Please login or Register to submit your answer