bp_activity_format_activity_action_activity_comment( string $action, object $activity )
Format ‘activity_comment’ activity actions.
Description
Parameters
- $action
-
(Required) Static activity action.
- $activity
-
(Required) Activity data object.
Return
(string) $action
Source
File: bp-activity/bp-activity-functions.php
function bp_activity_format_activity_action_activity_comment( $action, $activity ) {
$action = sprintf( __( '%s posted a new activity comment', 'buddyboss' ), bp_core_get_userlink( $activity->user_id ) );
/**
* Filters the formatted activity action comment string.
*
* @since BuddyPress 1.2.0
*
* @param string $action Activity action string value.
* @param BP_Activity_Activity $activity Activity item object.
*/
return apply_filters( 'bp_activity_comment_action', $action, $activity );
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 2.0.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.