• Resolved Ciao121

    (@ciao121)


    Hi, is there a way to create a new forum using functions?
    in bbPress the function is bbp_insert_forum. What’s the equivalent in wpForo?
    Thank you!

    • This topic was modified 8 years, 1 month ago by Ciao121.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author gVectors Team

    (@gvectors-team)

    There is no single function. You should use OOP:

    
    global $wpforo;
    $args = array( 
    'title' => $title, 
    'description' => description, 
    'parentid' => $parentid,
    'is_cat' => 0, //forum = 1 or category = 0
    'cat_layout' => 1, 
    'order' => 0 
    );
    $wpforo->forum->add();
    Thread Starter Ciao121

    (@ciao121)

    Works perfectly. Thank you!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Create a new forum function’ is closed to new replies.