bbp_remove_roles()
Removes Forums-specific user roles.
Description
Source
File: bp-forums/core/capabilities.php
function bbp_remove_roles() { // Remove the Forums roles foreach ( array_keys( bbp_get_dynamic_roles() ) as $bbp_role ) { remove_role( $bbp_role ); } // Some early adopters may have a deprecated visitor role. It was later // replaced by the Spectator role. remove_role( 'bbp_visitor' ); }
Changelog
Version | Description |
---|---|
bbPress (r2741) | 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.