How to set the course editor (front-end) to create course forums in a specific subforum, not in the root?
Sorry this is not possible in front end as of now. You can only create a forum from front end and then connect it in another forum from backend only.
You can create a feature request for this in our feature request forum.
can you tell me what php file is exactly creating those front-end initiated forums?
Try adding the following code in child theme or theme customiser.
add_filter('wplms_front_end_forum_vars','wplms_sub_forum');
function wplms_sub_forum($args){
$parent_forum_id = 2345;
$args['post_parent'] = $parent_forum_id;
return $args;
}
It works. Thank you for the solution. Is it possible to get the course's category term from within that filter? In that way I could assign different parent forum IDs?
Assuming you want to add a dropdown for the parent forum.
This is not possible, there is no provision for this in wplms as of now.