I am currently searching for a forum plugin that would allow our developers to hook in and create new posts from a dashboard app that is separate from our Wordpress site. This would include the option of adding an image file as well.
Is this something that can be accomplished with wpforo?
Hi @sleestak,
I think you need to call core function. There is no hook to add new topic or posts, the hooks are designed to do something during some function. For example, you can change some data in topic/posts when a new topic/post is created. But you can't initiate creation of topic/post via hook.
The core functions which can be called are the following, you should check core files to understand how they work and what parameters you need to pass:
//Create new topic
WPF()->topic->add($topic);
//Create new post:
WPF()->post->add($post);
The files you should check are:
- /wpforo/wpf-includes/class-topics.php
- /wpforo/wpf-includes/class-posts.php