which have no forums or users associated with them .' , 'bbp-private-groups' ) ; ?>

'private_group','compare' => 'EXISTS')) ; if ( $users ) : foreach ( $users as $user ) : $private_group = get_user_meta($user->ID, 'private_group', true); if (!empty ($private_group)) { //if multiple groups if (strpos($private_group, '*')!== FALSE) { foreach ( $rpg_groups as $group => $details ) { if (strpos($private_group, '*'.$group.'*') !== FALSE) { $check[$group] = true ; } } } //if only one group else { $check[$private_group] = true ; } } endforeach ; endif ; //now go through forums global $wpdb; $forum=bbp_get_forum_post_type() ; $forums =$wpdb->get_col("select ID from $wpdb->posts where post_type = '$forum'") ; update_option ('rew' , $forums ) ; foreach ( $forums as $forum ) : //cycle through each forum $meta = (array)get_post_meta( $forum, '_private_group', false ); if (!empty ($meta)) { foreach ($meta as $group ) : //set check = true for each group set in this forum $check[$group] = true ; endforeach ; } endforeach ; ?>
'; _e ('Disable this Group' , 'bbp-private-groups' ); ?>