bbp_do_uninstall( int $site_id )
Uninstall all bbPress options and capabilities from a specific site.
Description Description
Parameters Parameters
- $site_id
-
(Required)
Source Source
File: includes/admin/common.php
function bbp_do_uninstall( $site_id = 0 ) { if ( empty( $site_id ) ) { $site_id = get_current_blog_id(); } bbp_switch_to_site( $site_id ); bbp_delete_options(); bbp_remove_roles(); bbp_remove_caps(); flush_rewrite_rules(); bbp_restore_current_site(); }
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |