WordPress at a glance
action is not described

deleted_comment action-hook . WP 2.9.0

Fires immediately after a comment is deleted from the database.

Usage

add_action( 'deleted_comment', 'action_function_name_4349', 10, 2 );
function action_function_name_4349( $comment_id, $comment ){
	// action...
}
$comment_id(int)
The comment ID.
$comment(WP_Comment)
The deleted comment.

Notes

  • Since 4.9.0 Added the $comment parameter.

Where the hook is called

wp_delete_comment()
deleted_comment
wp-includes/comment.php 1335
do_action( 'deleted_comment', $comment->comment_ID, $comment );

Where the hook is used (in WP core)

Does not used.