Skip to:
Content
Pages
Categories
Search
Top
Bottom

What function call to create new Topic in forum post?

  • @seamtv

    Participant

    I’m trying to create topics via a unique form and with php. I was successful in passing arguments to the bbp_insert_topic function to create the topic, link it to its post_parent, and include important bbpress metadata. Unfortunately, this is a bbPress call, so while the topic shows up alright in the correct buddypress Group forum, it doesn’t trigger any of the activity stream updates and other buddypress-related goodies.

    Is there a buddypress function that I can use, which will create the new post and trigger all the buddypress-related actions and functions? Perhaps, one that will include a function that is equivalent to bbp_insert_topic but comes with all the buddypress goodness?

    I’ve come across mentions of bbp_new_topic but it seems to require these variables: $topic_id, $forum_id, $anonymous_data, $topic_author. Because it asks for a topic_id, this suggests the topic needs to be created first by another function. I’m a little confused about its use, plus I don’t know what the $anonymous_data would be, either.

    Anyways, I would be grateful for someone’s help. I’m so close to the finish line!

    Thanks in advance!

  • The topic ‘What function call to create new Topic in forum post?’ is closed to new replies.
Skip to toolbar