Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

Adding custom PHP code into Q&A site

+2 votes
160 views
asked Sep 17, 2016 in Q2A Core by Halwest Rasul
How I can add my custom php code in to the QandA site with out editing any pages. I mean where's available for adding custom php code.
Wa Salam . ;)

1 Answer

+1 vote
answered Sep 17, 2016 by Scott
selected Sep 30, 2016 by Halwest Rasul
 
Best answer
There is a plugin that appears to do what you want: https://github.com/NoahY/q2a-admin-plus

But it's not maintained, and I wouldn't recommend doing that anyway.

The best way to run custom PHP code is to make a plugin. Depending on what you want to do, the best type might be a page plugin, widget plugin, or a process plugin (init_page function). See here for more: http://docs.question2answer.org/plugins/
...