[ Index ]

PHP Cross Reference of BuddyPress




/src/bp-xprofile/ -> bp-xprofile-caps.php (summary)

Roles and capabilities logic for the XProfile component.

File Size: 95 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 functions


Functions that are not part of a class:

bp_xprofile_map_meta_caps( $caps, $cap, $user_id, $args )   X-Ref
Maps XProfile caps to built in WordPress caps.

return: array Actual capabilities for meta capability.
since: 1.6.0
param: array  $caps    Capabilities for meta capability.
param: string $cap     Capability name.
param: int    $user_id User id.
param: mixed  $args    Arguments.

bp_xprofile_grant_bp_xprofile_change_field_visibility_for_logged_out_users( $user_can, $user_id, $capability )   X-Ref
Grant the 'bp_xprofile_change_field_visibility' cap to logged-out users.

return: bool
since: 2.7.1
param: bool   $user_can
param: int    $user_id
param: string $capability

Generated: Sun Jun 23 01:00:55 2024 Cross-referenced by PHPXref 0.7.1