Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
235 views
in Plugins by
edited by

I must override qa_answer_create function in qa-include/app/post-create.php. (or qa_page_q_add_a_submit func. in qa-include/pages/question-sumbit.php)

Is this possible?

1 Answer

+1 vote
by
selected by
 
Best answer

As documented, only functions that begin with the following line can be overridden:

if (qa_to_override(__FUNCTION__))

You can patch the code of other functions, of course, but those changes will be lost when you upgrade Q2A, so you would have to re-apply them after an upgrade.

...