[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

BuddyPress Member Activity

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

Defines 6 functions

  bp_members_register_activity_actions()
  bp_members_format_activity_action_new_member()
  bp_members_format_activity_action_new_avatar()
  bp_core_new_user_activity()
  bp_members_new_avatar_activity()
  bp_members_remove_previous_avatar_activity()

Functions
Functions that are not part of a class:

bp_members_register_activity_actions()   X-Ref
Register the 'new member' activity type.

since: 2.2.0

bp_members_format_activity_action_new_member( $action, $activity )   X-Ref
Format 'new_member' activity actions.

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

bp_members_format_activity_action_new_avatar( $action, $activity )   X-Ref
Format 'new_avatar' activity actions.

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

bp_core_new_user_activity( $user )   X-Ref
Create a "became a registered user" activity item when a user activates his account.

since: 1.2.2
param: array $user Array of userdata passed to bp_core_activated_user hook.
return: bool

bp_members_new_avatar_activity( $user_id = 0, $type = '', $crop_data = array()   X-Ref
Adds an activity stream item when a user has uploaded a new avatar.

since: 8.0.0
since: 10.0.0 Adds the `$type`, `$crop_data` and `$cropped_avatar` parameters.
param: int    $user_id        The user id the avatar was set for.
param: string $type           The way the avatar was set ('camera' or `crop`).
param: array  $crop_data      Array of parameters passed to the crop handler.
param: array  $cropped_avatar Array containing the full, thumb avatar and the timestamp.

bp_members_remove_previous_avatar_activity( $user_id = 0, $timestamp = 0 )   X-Ref
Remove the `new_avatar` activity corresponding to the deleted previous avatar.

since: 10.0.0
param: int $user_id   The user ID.
param: int $timestamp The timestamp when the activity was created.
return: bool True on success. False otherwise.



Generated: Tue Jun 28 01:00:52 2022 Cross-referenced by PHPXref 0.7.1