bp_members_user_can_filter( bool $retval, int $user_id, string $capability, int $site_id, array $args = array() )
Filter the bp_user_can value to determine what the user can do in the members component.
Description Description
Parameters Parameters
- $retval
-
(Required) Whether or not the current user has the capability.
- $user_id
-
(Required)
- $capability
-
(Required) The capability being checked for.
- $site_id
-
(Required) Site ID. Defaults to the BP root blog.
- $args
-
(Optional) Array of extra arguments passed.
Default value: array()
Return Return
(bool)
Source Source
File: bp-members/bp-members-filters.php
Changelog Changelog
Version | Description |
---|---|
8.0.0 | Introduced. |