WordPress at a glance
action is not described

delete_comment action-hook . WP 1.2.0

Fires immediately before a comment is deleted from the database.


add_action( 'delete_comment', 'action_function_name_1339', 10, 2 );
function action_function_name_1339( $comment_id, $comment ){
	// action...
The comment ID.
The comment to be deleted.


  • Since 4.9.0 Added the $comment parameter.

Where the hook is called

wp-includes/comment.php 1309
do_action( 'delete_comment', $comment->comment_ID, $comment );

Where the hook is used (in WP core)

Does not used.