wp_update_comment

SummerySummery

Updates an existing comment in the database.

Syntax

wp_update_comment( array $commentarr )

DescriptionDescription

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

ParametersParameters

$commentarr

(array) (Required) Contains information on the comment.

ReturnReturn

(int) The value 1 if the comment was updated, 0 if not updated.

SourceSource

File: wp-includes/comment.php


			

ChangelogChangelog

Changelog
Version Description
4.9.0 Add updating comment meta during comment update.
2.0.0 Introduced.
Scroll to Top