Classe to create automatically a thread

  • Hello,

    I am looking for an easy way to automatically create a thread with specific text in a specific forum category by using a php class.

    I use a plugin which can call a class just after a specific event. So I would like it to be able to create a thread.

    Does someone have any example code to achieve this ?

    Thanks ! :)