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.


Description Description


Parameters Parameters

$activity_comment

(Required) The parent activity.

$comment_id

(Required) ID for the newly received comment.

$commenter_id

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


Top ↑

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

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.