bbp_privatized_forum

  • do_action( 'bbp_privatized_forum', $forum_id )

    Source Reference:

    • Component: bbPress:: bbp-forum
      File: /bbp-includes/bbp-forum-functions.php :: Trac Source Line: 309
      		$private[] = $forum_id;
      		update_option( '_bbp_private_forums', array_unique( array_values( $private ) ) );
      
      		// Update forums visibility setting
      		global $wpdb;
      		$wpdb->update( $wpdb->posts, array( 'post_status' => bbp_get_private_status_id() ), array( 'ID' => $forum_id ) );
      		wp_transition_post_status( bbp_get_private_status_id(), $current_visibility, get_post( $forum_id ) );
      	}
      
      	do_action( 'bbp_privatized_forum', $forum_id );
      
      	return $forum_id;
      }
      
      /**
       * Mark the forum as hidden
       *
       * @since bbPress (r2996)
       *
       * @param int $forum_id Optional. Forum id
      

Comments are closed.