[ 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

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

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

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

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()`

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



Generated: Mon Oct 21 01:01:24 2019 Cross-referenced by PHPXref 0.7.1