For example, in the qa-include/qa-page.php , I want to change some code from the orgin:
$qa_content['logo']='<A HREF="'.qa_html .... (Line611)
to my own:
$qa_content['logo']='<A HREF="http://.....
But I don't want to hard-code the Core, so I want to make a plugin.
The example code lies in the function qa_content_prepare($voting=false, $categoryids=null), and I guess I can do it by overriding it.
if (qa_to_override(__FUNCTION__)) { $args=func_get_args(); return qa_call_override(__FUNCTION__, $args); }
I've read about qa_content_prepare in some example plugins
q2a\qa-plugin\example-page\qa-example-page.php
Line 63: $qa_content=qa_content_prepare();
q2a\qa-plugin\NoahY-q2a-faq\qa-faq-page.php
Line 50: $qa_content=qa_content_prepare();
q2a\qa-plugin\svivian-badges\qa-badge-page.php
Line 35: $qa_content=qa_content_prepare();
q2a\qa-plugin\svivian-q2a-user-activity-plus\qa-user-activity.php
Line 47: $qa_content=qa_content_prepare();
but 4 examples above are "widget" plugin. I just want the plugin to override the function in the Core and don't want to create a widget to do that.
Can you help me ( @greenspan, @NoahY , @svivian .... )