Clanbite Social Kit Social

apply_filters( 'clanbite_social_kit_status_reply_notification', array|false $notification_data, int $comment_id, int $post_id, array $data, int $recipient_id )

Filter or short-circuit the status-reply notification (Clanbite Notifications).

Return false to skip. Return an array with user_id, type, title, and optional message, url, actor_id, object_type, object_id, data, dedupe for clanbite_notify().

Filter PHP

Parameters

$notification_data (array|false)

Payload for clanbite_notify, or false to skip.

$comment_id (int)

New comment ID.

$post_id (int)

Social post ID.

$data (array)

Comment created payload from REST.

$recipient_id (int)

User who will receive the notification.

Example

add_filter( 'clanbite_social_kit_status_reply_notification', function ( $notification_data, $comment_id, $post_id, $data, $recipient_id ) {
	// Change $notification_data here.
	return $notification_data;
}, 10, 5 );

Defined in inc/Social/Mentions.php