Clanbite Forums REST

apply_filters( 'clanbite_forums_reply_notification_recipients', list<int> $recipients, int $topic_id, int $reply_id, int $actor_id )

Filter user IDs to notify when a forum topic receives a reply.

Filter PHP

Parameters

$recipients (list<int>)

User IDs.

$topic_id (int)

Topic ID.

$reply_id (int)

Reply ID.

$actor_id (int)

Replying user ID.

Example

add_filter( 'clanbite_forums_reply_notification_recipients', function ( $recipients, $topic_id, $reply_id, $actor_id ) {
	// Change $recipients here.
	return $recipients;
}, 10, 4 );

Defined in inc/Rest/Rest_Controller.php