Clanbite Social Kit REST

do_action( 'clanbite_social_kit_comment_created', int $cid, int $post_id, array $data )

Fires when a social comment is created.

Used by the mentions system to parse @mentions and send notifications.

Action PHP

Parameters

$cid (int)

Comment ID.

$post_id (int)

Parent post ID.

$data (array)

Comment data including content, author_id, etc.

Example

add_action( 'clanbite_social_kit_comment_created', function ( $cid, $post_id, $data ) {
	// Run your code.
}, 10, 3 );

Defined in inc/Rest/Rest_Controller.php