Add question programmaticaly

4.74K viewsGeneral
0

I wish to import some custom set of questions/answers to my AnsPress website. I have a script which can parse my source of data. How do I create new questions programmatically from this script?

0

Hello,

All you have to do is to use ap_save_question function.

0

Just discovered this:
https://anspress.io/questions/question/tutorial-how-to-import-questions-and-answers-to-anspress/

It gives pretty good answer to my questions, thanks to the author. However, it would be useful to know if there are any changes or upgrades related to this question.