apply_filters( 'bp_current_user_can', bool $retval , string $capability , int $blog_id , array $args )
Filters whether or not the current user has a given capability.
Description
Parameters
- $retval
-
Whether or not the current user has the capability.
- $capability
-
The capability being checked for.
- $blog_id
-
Blog ID. Defaults to the BP root blog.
- $args
-
Array of extra arguments as originally passed.
Source
File: bp-core/bp-core-caps.php
Changelog
Version | Description |
---|---|
BuddyPress 2.7.0 Change format of $args variable array. | BuddyPress 2.7.0 Change format of $args variable array. |
BuddyPress 1.6.0 | 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.