[ 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: 342 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 9 functions

  xprofile_register_activity_actions()
  bp_xprofile_format_activity_action_new_avatar()
  bp_xprofile_format_activity_action_updated_profile()
  xprofile_record_activity()
  xprofile_delete_activity()
  xprofile_register_activity_action()
  bp_xprofile_new_avatar_activity()
  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_new_avatar( $action, $activity )   X-Ref
Format 'new_avatar' activity actions.

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

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

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

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

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

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

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

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

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

bp_xprofile_new_avatar_activity( $user_id = 0 )   X-Ref
Adds an activity stream item when a user has uploaded a new avatar.

since: 1.0.0
since: 2.3.4 Add new parameter to get the user id the avatar was set for.
return: bool
param: int $user_id The user id the avatar was set for.

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

since: 2.0.0
return: bool True on success, false on failure.
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.

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

since: 2.0.0



Generated: Sat Sep 21 01:01:46 2019 Cross-referenced by PHPXref 0.7.1