Clanbite Social Kit Social Since 1.6.2

do_action( 'clanbite_social_kit_comment_deleted', int $comment_id, object $row, int[] $deleted_ids )

Fires after a social comment and the replies below it were deleted.

Use it to undo what the comments earned elsewhere, for example points.

Action PHP

Parameters

$comment_id (int)

The comment that was deleted.

$row (object)

Its row as it was before deletion.

$deleted_ids (int[])

Every comment ID removed (the comment and all replies below it).

Example

add_action( 'clanbite_social_kit_comment_deleted', function ( $comment_id, $row, $deleted_ids ) {
	// Run your code.
}, 10, 3 );

Defined in inc/Social/Data_Access.php

Changelog

VersionDescription
1.6.2Introduced.