bp_members_format_activity_action_new_member( string $action, object $activity )
Format ‘new_member’ activity actions.
Description
Parameters
- $action
-
(Required) Static activity action.
- $activity
-
(Required) Activity object.
Return
(string) $action
Source
File: bp-members/bp-members-activity.php
function bp_members_format_activity_action_new_member( $action, $activity ) { $userlink = bp_core_get_userlink( $activity->user_id ); $action = sprintf( __( '%s became a registered member', 'buddyboss' ), $userlink ); // Legacy filter - pass $user_id instead of $activity. if ( has_filter( 'bp_core_activity_registered_member_action' ) ) { $action = apply_filters( 'bp_core_activity_registered_member_action', $action, $activity->user_id ); } /** * Filters the formatted 'new member' activity actions. * * @since BuddyPress 2.2.0 * * @param string $action Static activity action. * @param object $activity Activity object. */ return apply_filters( 'bp_members_format_activity_action_new_member', $action, $activity ); }
Changelog
Version | Description |
---|---|
BuddyPress 2.2.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.