[ 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.

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.
since: 1.6.0

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
param: bool   $user_can
param: int    $user_id
param: string $capability
since: 2.7.1



Generated: Thu Nov 21 01:00:57 2024 Cross-referenced by PHPXref 0.7.1