Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
992 views
in Q2A Core by

Please help me how do I override

qa_output_content($qa_content)

 

Q2A version: latest
by
It's difficult to say.. add more specific details.

1 Answer

+4 votes
by
edited by
 
Best answer

It is necessary for you to make overriding plugin.

Reference:
http://www.question2answer.org/overrides.php

My example (Lang filter plugin):
http://www.question2answer.org/qa/23318/new-plugin-lang-filter

Point1: qa-plugin.php

qa_register_plugin_overrides('qa-lang-filter-overrides.php');

Point2: qa-lang-filter-overrides.php

function qa_lang($identifier)
{
...
}
above qa_lang() function is overriding qa-include/qa-base.php :: qa_lang()
 
Point3:
When you call original function from the overrided function, add "_base" to function name. When you add the logic before or after original function, you should call as possible original function.
by
Thanks is was helpful
by
I added "Point3"
...