BBP_Forums_Admin::bbp_set_hidden_forum_states( $states,  $post )

Set the forum states if forum is hidden.

Description

Parameters

$states

(Required)

$post

(Required)

Return

(array)

Source

File: bp-forums/admin/forums.php

120
121
122
123
124
125
126
127
128
129
130
public function bbp_set_hidden_forum_states( $states, $post ) {
    global $post;
 
    if ( bbp_get_forum_post_type() === get_post_type( $post->ID ) && bbp_get_hidden_status_id() === bbp_get_forum_visibility( $post->ID ) ) {
 
    $states[] = __( 'Hidden', 'buddyboss' );
 
    }
 
    return $states;
}

Changelog

Changelog
Version Description
BuddyBoss 1.0.0 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.