bbp_map_meta_caps( array $caps = array(), string $cap = '', int $user_id, mixed $args = array() )
Maps forum/topic/reply caps to built in WordPress caps
Description
Parameters
- $caps
-
(Optional) Capabilities for meta capability
Default value: array()
- $cap
-
(Optional) Capability name
Default value: ''
- $user_id
-
(Required) User id
- $args
-
(Optional) Arguments
Default value: array()
Source
File: bp-forums/core/sub-actions.php
function bbp_map_meta_caps( $caps = array(), $cap = '', $user_id = 0, $args = array() ) { return apply_filters( 'bbp_map_meta_caps', $caps, $cap, $user_id, $args ); }
Changelog
Version | Description |
---|---|
bbPress (r2593) | 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.