apply_filters( 'bp_map_meta_caps', array $caps, string $cap, int $user_id, array $args )

Filters the community caps mapping to be built in WordPress caps.

Description

Parameters

$caps

(array) Returns the user's actual capabilities.

$cap

(string) Capability name.

$user_id

(int) The user ID.

$args

(array) Adds the context to the cap. Typically the object ID.

Source

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

Changelog

Changelog
Version Description
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.