bbp_add_caps()
Adds capabilities to WordPress user roles.
Description Description
Source Source
File: includes/core/capabilities.php
function bbp_add_caps() { // Loop through available roles and add caps foreach ( bbp_get_wp_roles()->role_objects as $role ) { foreach ( bbp_get_caps_for_role( $role->name ) as $cap => $value ) { $role->add_cap( $cap, $value ); } } do_action( 'bbp_add_caps' ); }
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |