bp_dd_delete_dummy_forum()

Delete all the forum dummy forum

Description

Source

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

function bp_dd_delete_dummy_forum() {

	/**
	 * Delete Forums
	 */
	$forums = bp_get_option( 'bp_dd_imported_forum_ids' );
	if ( ! empty( $forums ) ) {
		foreach ( (array) $forums as $forum_id ) {
			wp_delete_post( $forum_id );
			bbp_delete_forum( $forum_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.