asked 7 years ago

Hi,
Just noticed that you added the mention functionality in the new version. That is great! Thanks!
My question is if there is a hook when anyone is mentioned? I’m asking this because I’m using Buddypress with DWQA and I want to send private message to the user who is mentioned.

Before I have already did a some work to send private message when question is answered, marked to solved. If I you can let me know the hook I think it will save me a lot time. Thank you!

1 Answers
DominicStaff
answered 7 years ago

You can use the following code:

do_action('dwqa_add_answer_subscribe_mention', $mentionUsers, $answer_id, $question_id);
do_action('dwqa_add_comment_subscribe_mention', $mentionUsers, $comment_id, $comment);

 

Powered by DW Question & Answer Pro