Core Function
View Source on Trac ↗ wp_update_comment()
wp_update_comment( mixed $commentarr, mixed $wp_error = false ) Updates an existing comment in the database.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $commentarr array | Contains information on the comment. Required |
| $wp_error bool | Optional. Whether to return a WP_Error on failure. Default false. |
Return Value
((int)
(int | false | WP_Error) The value 1 if the comment was updated, 0 if not updated.
False or a WP_Error object on failure.
Function Information
Since Version
2.0.0
Source File
wp-includes/comment.php
Advertisement