apply_filters( 'bp_user_can', bool $retval, int $user_id, string $capability, int $site_id, array $args )

Filters whether or not the specified user has a given capability on a given site.

Parameters Parameters


(bool) Whether or not the current user has the capability.




(string) The capability being checked for.


(int) Site ID. Defaults to the BP root blog.


(array) Array of extra arguments passed.

Source Source

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

View on Trac

Top ↑

Changelog Changelog

Version Description
2.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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