[ Index ]

PHP Cross Reference of BBPress

title

Body

[close]

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

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

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

Defines 4 functions

  bbp_get_forum_caps()
  bbp_map_forum_meta_caps()
  bbp_is_user_forum_moderator()
  bbp_allow_forums_of_user()

Functions
Functions that are not part of a class:

bbp_get_forum_caps()   X-Ref
Return forum capabilities

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

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
return: array Actual capabilities for meta capability
since: 2.2.0 bbPress (r4242)

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.
return: bool Return true if user is moderator of forum
since: 2.6.0 bbPress (r5834)

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
return: array
since: 2.6.0 bbPress (r6426)



Generated: Fri Jul 19 01:01:31 2019 Cross-referenced by PHPXref 0.7.1