Codex

Function Reference/wp update comment

Contents

Description

Updates an existing comment in the database.

Filters the comment and makes sure certain fields are valid before updating.

Usage

<?php wp_update_comment$commentarr ?>

Parameters

$commentarr
(array) (required) Contains information on the comment.
Default: None

Return Values

(integer) 
Comment was updated if value is 1, or was not updated if value is 0.

Examples

Notes

Change Log

Since: 2.0.0

Source File

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

Related

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