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
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | 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.