bp_dd_delete_dummy_members()

Delete all the dummy members

Description

Source

File: bp-core/bp-core-tools-default-data.php

function bp_dd_delete_dummy_members() {
	/*
 * Users and all their data.
 */
	$users = bp_get_option( 'bp_dd_imported_user_ids' );
	if ( ! empty( $users ) ) {
		$users_str = implode( ',', (array) $users );

		foreach ( (array) $users as $user_id ) {
			bp_core_delete_account( $user_id );
		}
	}
}

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.