How to show private bbPress forums

Content Views Pro helps you to show forums, topics, replies of the bbPress plugin easily without coding.
By default, bbPress excludes private forums from all queries. To show these private forums in View output, please add this code to file functions.php in the directory of your active theme:

// Content Views Pro - show private bbPress forums
add_filter( 'bbp_include_all_forums', 'cvp_bbpress_show_private_forums', 10, 2 );
function cvp_bbpress_show_private_forums( $args, $posts_query ) {
	if ( $posts_query->get( 'by_contentviews' ) ) {
		$args = true;
	}

	return $args;
}

Best regards,