[ Index ]

PHP Cross Reference of BBPress




/src/includes/forums/ -> capabilities.php (summary)

bbPress Forum Capabilites Used to map forum capabilities to WordPress's existing capabilities.

File Size: 276 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 4 functions


Functions that are not part of a class:

bbp_get_forum_caps()   X-Ref
Return forum capabilities

since: 2.0.0 bbPress (r2593)
return: array Forum capabilities

bbp_map_forum_meta_caps( $caps = array()   X-Ref
Maps forum capabilities

param: array $caps Capabilities for meta capability
param: string $cap Capability name
param: int $user_id User id
param: array $args Arguments
since: 2.2.0 bbPress (r4242)
return: array Actual capabilities for meta capability

bbp_is_user_forum_moderator( $user_id = 0, $forum_id = 0 )   X-Ref
Can a user moderate a forum?

param: int $user_id User id.
param: int $forum_id Forum id.
since: 2.6.0 bbPress (r5834)
return: bool Return true if user is moderator of forum

bbp_allow_forums_of_user( $forum_ids = array()   X-Ref
Filter an array of forum IDs that are being excluded, and remove any forum
IDs a user explicitly has access to.

This typically means private or hidden forums the user has moderation rights
to, but it can be filtered to mean just about anything.

This function filters the return values of the following functions:
- `bbp_get_private_forum_ids()`
- `bbp_get_hidden_forum_ids()`

param: array $forum_ids Forum IDs to check if the user ID is a moderator of
param: int   $user_id   User ID to check if is a moderator of forums
since: 2.6.0 bbPress (r6426)
return: array

Generated: Sun Apr 14 01:00:59 2024 Cross-referenced by PHPXref 0.7.1