[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/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

  bp_xprofile_map_meta_caps()
  bp_xprofile_grant_bp_xprofile_change_field_visibility_for_logged_out_users()

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.

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.
return: array Actual capabilities for meta capability.

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.

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



Generated: Tue Dec 3 01:00:55 2024 Cross-referenced by PHPXref 0.7.1