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 Description


Parameters 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.


Top ↑

Source Source

File: bp-core/bp-core-caps.php


Top ↑

Changelog Changelog

Changelog
Version Description
2.7.0 Change format of $args variable array.
2.4.0 Pass $args variable.
1.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.