bp_groups_format_activity_action_activity_update( string $action, object $activity )
Format groups ‘activity_update’ activity actions.
Description
Parameters
- $action
-
(Required) Static activity action.
- $activity
-
(Required) Activity data object.
Return
(string)
Source
File: bp-groups/bp-groups-activity.php
173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 | function bp_groups_format_activity_action_activity_update( $action , $activity ) { $user_link = bp_core_get_userlink( $activity ->user_id ); $group = groups_get_group( $activity ->item_id ); $group_link = '<a href="' . esc_url( bp_get_group_permalink( $group ) ) . '">' . esc_html( $group ->name ) . '</a>' ; $action = sprintf( __( '%1$s posted an update in the group %2$s' , 'buddyboss' ), $user_link , $group_link ); /** * Filters the groups 'activity_update' activity actions. * * @since BuddyBoss 1.1.9 * * @param string $action The groups 'activity_update' activity actions. * @param object $activity Activity data object. */ return apply_filters( 'bp_groups_format_activity_action_activity_update' , $action , $activity ); } |
Changelog
Version | Description |
---|---|
BuddyBoss 1.1.9 | 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.