Codex

Function Reference/wp delete comment

Contents

Description

Removes comment ID and maybe updates post comment count.

The post comment count will be updated if the comment was approved and has a post ID available.

Usage

<?php wp_delete_comment$comment_id ?>

Parameters

$comment_id
(integer) (required) Comment ID
Default: None

Return Values

(boolean) 
False if delete comment query failure, true on success.

Examples

Notes

Change Log

Since: 2.0.0

Source File

wp_delete_comment() is located in wp-includes/comment.php.

Related

See also index of Function Reference and index of Template Tags.