bbp_remove_caps()
Removes capabilities from WordPress user roles.
Description
Source
File: bp-forums/core/capabilities.php
232 233 234 235 236 237 238 239 240 241 242 | function bbp_remove_caps() { // Loop through available roles and remove caps foreach ( bbp_get_wp_roles()->role_objects as $role ) { foreach ( array_keys ( bbp_get_caps_for_role( $role ->name ) ) as $cap ) { $role ->remove_cap( $cap ); } } do_action( 'bbp_remove_caps' ); } |
Changelog
Version | Description |
---|---|
bbPress (r2608) | 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.