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

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



Generated: Wed Jul 24 01:01:43 2019 Cross-referenced by PHPXref 0.7.1