bp_activity_comment_action

  • apply_filters( 'bp_activity_comment_action', sprintf( __( '%s posted a new activity comment', 'buddypress' ), bp_core_get_userlink( $user_id ) ) )

    Source Reference:

    • Component: BuddyPress :: bp-activity
      File: /bp-activity/bp-activity-functions.php :: Trac Source Line: 939
      		$parent_id = $activity_id;
      
      	// Check to see if the parent activity is hidden, and if so, hide this comment publically.
      	$activity = new BP_Activity_Activity( $activity_id );
      	$is_hidden = ( (int)$activity->hide_sitewide ) ? 1 : 0;
      
      	// Insert the activity comment
      	$comment_id = bp_activity_add( array(
      		'id' => $id,
      		'action' => apply_filters( 'bp_activity_comment_action', sprintf( __( '%s posted a new activity comment', 'buddypress' ), bp_core_get_userlink( $user_id ) ) ),
      		'content' => apply_filters( 'bp_activity_comment_content', $content ),
      		'component' => $bp->activity->id,
      		'type' => 'activity_comment',
      		'user_id' => $user_id,
      		'item_id' => $activity_id,
      		'secondary_item_id' => $parent_id,
      		'hide_sitewide' => $is_hidden
      	) );
      
      	// Send an email notification if settings allow
      

Comments are closed.