bbp_categorize_forum( int $forum_id )

Make the forum a category

Description

Parameters

$forum_id

(Optional) Forum id

Return

(bool) False on failure, true on success

Source

File: bp-forums/forums/functions.php

752
753
754
755
756
757
758
759
760
761
762
763
function bbp_categorize_forum( $forum_id = 0 ) {
 
    $forum_id = bbp_get_forum_id( $forum_id );
 
    do_action( 'bbp_categorize_forum'$forum_id );
 
    update_post_meta( $forum_id, '_bbp_forum_type', 'category' );
 
    do_action( 'bbp_categorized_forum', $forum_id );
 
    return $forum_id;
}

Changelog

Changelog
Version Description
bbPress (r2746) Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.