bp_activity_comment_reply_add_notification( BP_Activity_Activity $activity_comment, int $comment_id, int $commenter_id )

Notify a member one of their activity comment received a reply.

Parameters Parameters


(BP_Activity_Activity) (Required) The parent activity.


(int) (Required) ID for the newly received comment.


(int) (Required) ID of the user who made the comment.

Source Source

File: bp-activity/bp-activity-notifications.php

function bp_activity_comment_reply_add_notification( $activity_comment, $comment_id, $commenter_id ) {
	bp_notifications_add_notification( array(
		'user_id'           => $activity_comment->user_id,
		'item_id'           => $comment_id,
		'secondary_item_id' => $commenter_id,
		'component_name'    => buddypress()->activity->id,
		'component_action'  => 'comment_reply',
		'date_notified'     => bp_core_current_time(),
		'is_new'            => 1,
	) );

Top ↑

Changelog Changelog

Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.