bbp_do_uninstall( type $site_id )

Uninstall all Forums options and capabilities from a specific site.

Description

Parameters

$site_id

(Required)

Source

File: bp-forums/admin/functions.php

178
179
180
181
182
183
184
185
186
187
function bbp_do_uninstall( $site_id = 0 ) {
    if ( empty( $site_id ) )
        $site_id = get_current_blog_id();
 
    switch_to_blog( $site_id );
    bbp_delete_options();
    bbp_remove_caps();
    flush_rewrite_rules();
    restore_current_blog();
}

Changelog

Changelog
Version Description
bbPress (r3765) 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.