false, 'users_per_page' => 10000, // Yeah, this is a real limit, but who's going to have more than 10,000 bozos on their forum at once? And if they do, they can just visit the page multiple times. 'roles' => array( 'bozo' ) ) ); $total_bozos = (int)bb_get_option( 'dabozos_count' ); ?>

ID ) . ', '; wp_cache_delete( $bozo->ID, 'users' ); wp_cache_delete( $bozo->user_nicename, 'usernicename' ); wp_cache_delete( $bozo->user_email, 'useremail' ); wp_cache_delete( $bozo->user_login, 'userlogins' ); } $IDs = rtrim( $IDs, ', ' ); // No $bbdb->prepare needed, because everything is already sanitized. $bbdb->query( "DELETE FROM `{$bbdb->users}` WHERE `ID` IN ( {$IDs} )" ); $bbdb->query( "DELETE FROM `{$bbdb->usermeta}` WHERE `user_id` IN ( {$IDs} )" ); bb_update_option( 'dabozos_count', $total_bozos += count( $bozos ) ); ?>

>
Username E-mail Registered
Username E-mail Registered
user_email, 16 ); ?>user_login; ?> user_email; ?> user_registered; ?>
get_col( 'SELECT ID FROM `' . $bbdb->users . '`' ); foreach ( $user_ids as $id ) { bb_set_current_user( $id ); bb_ksd_check_profile( $id ); } bb_set_current_user( $current_user_id ); } } add_action( 'delete_all_bozos_pre_head', 'dabozos_admin_check' ); function dabozos_admin_add() { bb_admin_add_submenu( __( 'Delete All Bozos', 'delete-all-bozos' ), 'use_keys', 'delete_all_bozos', 'users.php' ); } add_action( 'bb_admin_menu_generator', 'dabozos_admin_add' ); load_plugin_textdomain( 'delete-all-bozos', dirname( __FILE__ ) . '/translations' );