[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

BuddyPress XProfile Activity & Notification Functions. These functions handle the recording, deleting and formatting of activity items and notifications for the user and for this specific component.

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

Defines 7 functions

  xprofile_register_activity_actions()
  bp_xprofile_format_activity_action_updated_profile()
  xprofile_record_activity()
  xprofile_delete_activity()
  xprofile_register_activity_action()
  bp_xprofile_updated_profile_activity()
  xprofile_activity_filter_options()

Functions
Functions that are not part of a class:

xprofile_register_activity_actions()   X-Ref
Register the activity actions for the Extended Profile component.

since: 1.0.0

bp_xprofile_format_activity_action_updated_profile( $action, $activity )   X-Ref
Format 'updated_profile' activity actions.

param: string $action   Static activity action.
param: object $activity Activity object.
return: string
since: 2.0.0

xprofile_record_activity( $args = '' )   X-Ref
Records activity for the logged in user within the profile component so that
it will show in the users activity stream (if installed).

param: array|string $args String containing all variables used after bp_parse_args() call.
return: WP_Error|bool|int
since: 1.0.0

xprofile_delete_activity( $args = '' )   X-Ref
Deletes activity for a user within the profile component so that it will be
removed from the users activity stream and sitewide stream (if installed).

param: array|string $args Containing all variables used after bp_parse_args() call.
return: bool
since: 1.0.0

xprofile_register_activity_action( $key, $value )   X-Ref
Register an activity action for the Extended Profiles component.

param: string $key Key.
param: string $value Value.
return: bool True if success, false on failure.
since: 1.0.0

bp_xprofile_updated_profile_activity( $user_id, $field_ids = array()   X-Ref
Add an activity item when a user has updated his profile.

param: int   $user_id    ID of the user who has updated his profile.
param: array $field_ids  IDs of the fields submitted.
param: bool  $errors     True if validation or saving errors occurred, otherwise false.
param: array $old_values Pre-save xprofile field values and visibility levels.
param: array $new_values Post-save xprofile field values and visibility levels.
return: bool True on success, false on failure.
since: 2.0.0

xprofile_activity_filter_options()   X-Ref
Add filters for xprofile activity types to Show dropdowns.

since: 2.0.0



Generated: Thu Apr 25 01:01:12 2024 Cross-referenced by PHPXref 0.7.1