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


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: bp-members/bp-members-filters.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
8.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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