I am trying to run PHP code to subtract a value from my database after a user submits a question. But, I cannot seem to find the part of the plugin that is triggered when the question is first submitted. Does anyone know where that is? Also, I am trying to trigger PHP code when a question is clicked on and opened by a user. I need to be able to get the user’s ID for both scenarios so I can update a value in the database.
Thanks for the help
@jacob Davis : for your question , you can open file :
dw-question-answer/inc/actions.php and go to
the function :
dwqa_insert_question(), is the function that run when you submit a question.
For Ajax you can research here:
Please login or Register to submit your answer